@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
@tailwind base;@tailwind components;@tailwind utilities;
:root{font-family:Inter,'Hind Siliguri',sans-serif;color:#092b52;background:#f7fafc}
@layer components{.btn{@apply inline-flex items-center justify-center gap-2 rounded-xl px-5 py-3 text-sm font-semibold transition duration-200 focus:outline-none focus:ring-4 focus:ring-teal/20}.btn-primary{@apply btn bg-teal text-white hover:bg-[#087c77]}.btn-secondary{@apply btn bg-navy text-white hover:bg-[#123f76]}.btn-light{@apply btn bg-white text-navy border border-slate-200 hover:bg-slate-50}.field{@apply w-full rounded-xl border border-slate-200 bg-white px-4 py-3 text-sm outline-none focus:border-teal focus:ring-2 focus:ring-teal/20}.panel{@apply rounded-2xl border border-slate-100 bg-white shadow-soft}.label{@apply block text-sm font-semibold text-slate-700 mb-1.5}}

/* Uniform content canvas for every authenticated workspace screen.
   Page components can retain their existing internal forms, grids and tables. */
@layer components {
  .workspace-content {
    @apply mx-auto w-full min-w-0 max-w-[1440px] px-4 py-6 sm:px-6 sm:py-8 lg:px-8;
  }
  /* Remove only the legacy OUTER wrapper widths and gutters.
     Do not touch nested form widths (e.g. max-w-md inputs). */
  .workspace-content > [class*="max-w-"] {
    max-width: none !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }
  /* Enforce the same content width for a page that has an outer container
     without a max-width utility. */
  .workspace-content > :is(div, section, article) { min-width: 0; }
}


/* Unified authenticated pages – independent of Tutor / Guardian / Admin role. */
.workspace-content > :is(div,section,article) { width:100%; max-width:none!important; margin-left:0!important; margin-right:0!important; padding-left:0!important; padding-right:0!important; }
.workspace-content > :is(div,section,article) > h1,
.workspace-content > :is(div,section,article) > div > h1,
.workspace-content > :is(div,section,article) > div > div > h1 { font-size:1.75rem; line-height:2.25rem; font-weight:800; letter-spacing:-.025em; color:#102f4a; }
.workspace-content :is(input:not([type=checkbox]):not([type=radio]), textarea) { border-radius:.75rem; }
.workspace-content :is(table) { width:100%; }
.workspace-content :is(.panel,article,section) { min-width:0; }
/* Select2 skin follows the standard .field input appearance. */
.workspace-content .select2-container { max-width:100%; font-family:Inter,'Hind Siliguri',sans-serif; font-size:.875rem; }
.workspace-content .select2-container .select2-selection--single { height:46px; border:1px solid #cbd5e1; border-radius:12px; background:white; }
.workspace-content .select2-container .select2-selection--single .select2-selection__rendered { line-height:44px; padding-left:14px; padding-right:30px; color:#334155; }
.workspace-content .select2-container .select2-selection--single .select2-selection__arrow { height:44px; right:8px; }
.workspace-content .select2-container--default.select2-container--focus .select2-selection--single,
.workspace-content .select2-container--default.select2-container--open .select2-selection--single { border-color:#0d9488; box-shadow:0 0 0 3px rgba(13,148,136,.13); outline:0; }
.select2-dropdown { border-color:#cbd5e1; border-radius:10px; overflow:hidden; z-index:1100; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background:#087e74; }
.select2-search--dropdown .select2-search__field { border:1px solid #cbd5e1!important; border-radius:8px; padding:8px; outline:0; }
@media(max-width:640px){ .workspace-content > :is(div,section,article) > h1 {font-size:1.5rem;} }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Discovery fills the complete app canvas while internal workspaces retain their own gutters. */
.workspace-content.workspace-content--discovery { max-width: none; padding: 0; }
.workspace-content--discovery > div { width: 100%; }

/* Keep authentication forms centered within the shared app workspace. */
.workspace-content.workspace-content--auth > div {
  max-width: 1160px !important; margin-left: auto !important; margin-right: auto !important;
}
.workspace-content.workspace-content--auth > main { width: 100%; }
