/* Evidenca Akademike V6 · focused visual and usability upgrades. No external assets. */
:root{--navy:#0d1c2d;--navy2:#173044;--ink:#172d40;--muted:#718598;--line:#e4edf0;--bg:#f5f8fb;--accent:#097f84;--accent2:#086a70;--mint:#e7f7f5;--shadow:0 14px 38px rgba(13,40,58,.045)}
html{scroll-behavior:smooth}button,input,textarea,select{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid rgba(17,158,153,.34);outline-offset:2px}
body{background:radial-gradient(ellipse 800px 480px at 95% -18%,rgba(21,157,157,.055),transparent 75%),#f5f8fb}
.sidebar{background:linear-gradient(165deg,#0e2235,#0e1a2c 75%);box-shadow:8px 0 34px rgba(12,28,42,.08)}
.nav-link{border-radius:12px;transition:background .2s,color .2s,transform .2s}.nav-link:hover,.side-course:hover{transform:translateX(2px)}
.nav-link.active{background:linear-gradient(100deg,rgba(116,210,201,.17),rgba(96,143,175,.11));box-shadow:inset 3px 0 #5bd4c5}
.side-privacy{background:rgba(105,197,190,.08);border-color:rgba(105,197,190,.16)}
.topbar{background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-bottom-color:#e6edef}
.topbar-current{color:#193448}
.main-content{max-width:1630px;margin:0 auto}
.page-head{margin-bottom:22px}.page-head h1{font-size:clamp(26px,2.6vw,36px);letter-spacing:-1.3px}.page-head p{max-width:680px;color:#708699}
.eyebrow,.micro{color:#0d8a8c;letter-spacing:1.5px;font-size:10px;font-weight:820}
.btn{transition:transform .16s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;border-radius:11px;font-weight:720}
.btn:not(:disabled):hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(110deg,#0a8589,#116e76);box-shadow:0 7px 16px rgba(9,127,132,.16)}
.btn-primary:not(:disabled):hover{box-shadow:0 10px 24px rgba(9,127,132,.23)}
.btn-outline{border-color:#dbe6ea;background:#fff;color:#264354}
.btn-outline:hover{background:#f4faf9;border-color:#b0d3d2}
.dashboard-hero{background:radial-gradient(circle at 91% 0%,rgba(74,197,186,.16),transparent 32%),linear-gradient(110deg,#112537,#1a5260);border-radius:20px;box-shadow:0 20px 45px rgba(17,57,74,.14)}
.dashboard-hero .btn{margin-top:3px}.dashboard-hero .hero-add-student{margin-left:10px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;box-shadow:none;backdrop-filter:blur(7px)}
.dashboard-hero .hero-add-student:hover{background:rgba(255,255,255,.22)}
.stat-block,.worksheet,.info-panel,.report-table,.courses-list{box-shadow:0 10px 33px rgba(15,48,63,.038);border-color:#e6edf0}
.stat-block{border-radius:16px;transition:transform .2s ease,box-shadow .2s ease}.stat-block:hover{transform:translateY(-2px);box-shadow:0 16px 28px rgba(15,48,63,.085)}
.course-row{transition:background .18s ease}.course-row:hover{background:#f5fbfa}
.course-toolbar{gap:15px}
.course-select{border:1px solid #d9e6e9;background:#fff;border-radius:13px;padding:4px 8px 4px 15px;box-shadow:0 4px 15px rgba(16,44,56,.025);min-height:55px;gap:10px}
.course-select>svg{color:#0d9294;width:19px;height:19px}
.course-select .smart-select{flex:1;min-width:0}
.course-select .smart-select-trigger{height:45px;background:transparent;border:none;box-shadow:none!important;font-weight:720}
.course-select .smart-select-trigger:hover{background:#f4faf9}
input,textarea,select{border-color:#d9e3e9;box-shadow:0 1px 2px rgba(15,40,56,.018)}
input:focus,textarea:focus,select:focus{border-color:#0b9e9c;box-shadow:0 0 0 4px rgba(17,139,139,.10)}
/* Searchable custom selects: keep the real HTML select as the source of truth. */
.smart-select{position:relative;min-width:0;width:100%;z-index:1}
.smart-select.open{z-index:85}
.smart-native{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;left:0;top:0}
.smart-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-width:0;height:44px;border:1px solid #dbe5ea;background:linear-gradient(#fff,#fcfdfd);border-radius:11px;padding:0 12px;font-size:12px;font-weight:660;color:#253f51;text-align:left;transition:all .2s ease}
.smart-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.smart-chevron{display:flex;color:#728b9b;transition:transform .2s ease}.smart-chevron svg{width:16px;height:16px}
.smart-select-trigger:hover{border-color:#a9d0d0;background:#f7fcfb}
.smart-select-trigger:focus-visible,.smart-select.open .smart-select-trigger{border-color:#1a9b9c;outline:none;box-shadow:0 0 0 4px rgba(18,141,142,.1)}
.smart-select.open .smart-chevron{transform:rotate(180deg)}
.smart-select-trigger.empty .smart-value{color:#80929e}
.smart-select-popover{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:300;display:none;background:#fff;border:1px solid #dce7ea;box-shadow:0 24px 52px rgba(11,35,49,.19);border-radius:13px;padding:7px;min-width:230px;animation:menu-appear .14s ease-out}
.smart-select.open .smart-select-popover{display:block}
@keyframes menu-appear{from{transform:translateY(-5px);opacity:.1}to{transform:translateY(0);opacity:1}}
.smart-select-search{height:39px;width:100%;padding:0 11px;margin:0 0 6px;border-radius:9px;border:1px solid #e0e8ec;font-size:12px}
.smart-select-search[hidden]{display:none!important}
.smart-select-options{max-height:258px;overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-width:thin}
.smart-option{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;border:0;border-radius:9px;padding:11px 10px;background:transparent;color:#334d5e;font-size:12px;font-weight:580;text-align:left;line-height:1.4}
.smart-option span{min-width:0}.smart-option svg{flex-shrink:0;color:#0b8f8f}
.smart-option:hover,.smart-option:focus-visible{background:#eef8f6;outline:none}
.smart-option.selected{background:#e9f6f5;color:#08787c;font-weight:780}
.smart-none{padding:16px 9px;color:#8595a1;font-size:12px;text-align:center}
.report-filters{border-radius:18px;box-shadow:0 10px 32px rgba(10,42,58,.04);gap:14px;padding:21px}
.report-filters>div{min-width:0}.report-filters .smart-select-trigger{height:43px}
.report-filters label{color:#526979}
.worksheet{border-radius:18px;overflow:visible}
.worksheet-header{border-radius:18px 18px 0 0}
.worksheet-stats{background:#f9fcfc}
.student-management-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 21px;background:linear-gradient(95deg,#e8f7f5,#f2faf9);border:1px solid #cfe9e7;border-radius:15px;margin:0 0 18px;flex-wrap:wrap}
.student-management-identity{display:flex;align-items:center;gap:13px}
.student-management-visual{height:45px;width:45px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#d4f0ec;color:#098287}
.student-management-identity strong{display:block;font-size:15px;color:#173b48}
.student-management-identity small{display:block;color:#64818c;margin-top:4px}
.student-management-hint{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#427e7a}
.roster-worksheet{border-radius:18px;overflow:hidden}
.roster-table tbody tr{transition:background .15s ease}.roster-table tbody tr:hover{background:#fafdfd}
.roster-table .student-avatar{border-radius:12px;background:#e5f2f3;color:#277a86}
.roster-table .student-name{font-weight:725}
.roster-table .student-actions button{border-radius:9px;transition:all .15s ease}.roster-table .student-actions button:hover{background:#e9f6f4;color:#167b80}
.search-box{border-radius:11px;background:#fff}.search-box:focus-within{box-shadow:0 0 0 3px rgba(17,139,139,.09);border-color:#8ac5c3}
/* Modal refinements */
.modal-backdrop{background:rgba(5,20,33,.63);backdrop-filter:blur(7px)}
.modal{border-radius:20px;box-shadow:0 35px 100px rgba(2,23,36,.25);border:1px solid rgba(255,255,255,.2)}
.modal-head{padding-top:27px;padding-bottom:19px;background:linear-gradient(115deg,#f5fafb,#fff);border-bottom:1px solid #edf2f4}
.modal-head h2{color:#142d41;letter-spacing:-.65px}
.modal-head p{font-size:12px;line-height:1.6;max-width:440px}
.modal-body{padding-top:22px;padding-bottom:18px}
.modal-footer{padding-top:16px;background:#fbfcfd;border-top:1px solid #edf2f4}
.modal-footer .btn{min-height:43px}
.premium-student-form{display:grid;gap:7px}
.student-form-intro{display:flex;align-items:center;gap:12px;background:linear-gradient(105deg,#effaf8,#f7fbfb);border:1px solid #d6eeea;border-radius:13px;padding:13px 15px;margin-bottom:10px}
.student-form-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#def4ee;color:#078388;flex-shrink:0}
.student-form-intro strong{display:block;font-size:14px;color:#1b3a49}.student-form-intro small{display:block;color:#6e8b96;font-size:11px;margin-top:4px;line-height:1.45}
.form-section-label{font-size:10px;letter-spacing:1.25px;color:#46868b;font-weight:850;margin:12px 0 8px}
.premium-student-form .form-field{margin-bottom:12px}
.premium-student-form .form-field label em{color:#d04e5d;font-style:normal}
.premium-student-form input{height:48px;border-radius:11px;font-size:13px}
.premium-student-form input::placeholder{color:#a5b3bf}
.premium-course-list{display:grid;grid-template-columns:1fr;gap:9px}
.premium-course-item{display:flex;align-items:center;gap:10px;margin:0;border:1px solid #e1eaee;border-radius:12px;padding:12px 13px;transition:border-color .16s,background .16s,box-shadow .16s;cursor:pointer}
.premium-course-item:hover{border-color:#9bcfcb;background:#fbfefd}
.premium-course-item:has(input:checked){background:#ecf9f6;border-color:#62bcb4;box-shadow:0 0 0 2px rgba(24,159,151,.06)}
.premium-course-item input{width:17px;height:17px;accent-color:#0e8d8d;flex-shrink:0;margin:0}
.premium-course-label{flex:1;min-width:0}.premium-course-label strong{display:block;color:#24475a;font-size:12px;line-height:1.3}.premium-course-label small{display:block;font-size:10px;color:#7d93a2;font-weight:600;margin-top:3px}
.premium-course-check{display:none;color:#168f88}.premium-course-item:has(input:checked) .premium-course-check{display:flex}
.modal-caption{display:block;color:#8294a1;font-size:11px;line-height:1.5;margin:5px 0 12px}
.modal-info-row{display:flex;align-items:flex-start;gap:9px;color:#638491;background:#f5f9fa;border-radius:11px;padding:12px 13px;line-height:1.6;font-size:11px;margin:6px 0 3px}
.modal-info-row svg{color:#238c8c;width:17px;height:17px;flex-shrink:0}
.auth-screen input{border-radius:12px}.auth-screen .btn-primary{background:linear-gradient(110deg,#168a8b,#0a7378)}
@media(max-width:780px){.dashboard-hero .hero-add-student{margin:10px 0 0;width:100%;justify-content:center}.dashboard-hero .btn:not(.hero-add-student){width:100%;justify-content:center}.student-management-banner{padding:14px}.student-management-hint{width:100%}.smart-select-popover{min-width:100%}.course-select .smart-select-trigger{font-size:11px}.page-head-actions .btn{min-height:42px}.modal-head h2{font-size:20px}}
@media(max-width:550px){.main-content{padding-top:20px}.student-management-visual{height:38px;width:38px}.student-management-identity strong{font-size:13px}.modal-body{padding:17px}.modal-head,.modal-footer{padding-left:17px;padding-right:17px}.modal-footer .btn{width:100%;justify-content:center}.premium-course-item{padding:11px}.report-filters{padding:13px;gap:12px}.smart-select-trigger{padding:0 9px}.smart-select-popover{min-width:200px}.report-filters>div:nth-child(even) .smart-select-popover{right:0;left:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Form actions remain visible even on compact laptop/mobile displays. */
.modal{display:flex;flex-direction:column;overflow:hidden;max-height:min(92vh,920px)}
.modal-head,.modal-footer{flex-shrink:0}
.modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
@media(max-width:550px){.modal{max-height:calc(100dvh - 25px)}.modal-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}}

/* V7: educator role-specific course permissions */
.v7-permission{display:inline-flex;align-items:center;border-radius:100px;padding:6px 10px;font-size:11px;font-weight:750;letter-spacing:.02em;white-space:normal}.v7-permission.read-only{background:#fef3d7;color:#92400e;border:1px solid #fde68a}.v7-permission.can-edit{background:#e1f5ef;color:#076b53;border:1px solid #c1e8dc}.v7-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.v7-section{padding:18px 0;border-bottom:1px solid #e9edf2;display:flex;flex-direction:column;gap:12px}.v7-section>strong{display:flex;align-items:center;gap:8px;font-size:15px;color:#102637}.v7-section>strong svg{height:17px;width:17px}.v7-section p{font-size:13px;color:#637688;line-height:1.6;margin:0}.v7-pending{display:grid;gap:6px}.v7-pending>div{background:#f1f5f9;padding:10px 12px;border-radius:9px;font-size:12px;color:#32445c;display:flex;justify-content:space-between}.v7-pending span{color:#975e05;font-weight:700}.v7-requests{display:grid;gap:10px}.v7-request-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;border:1px solid #e4eaf0;border-radius:13px}.v7-request-row>div:first-child{display:grid;gap:5px}.v7-request-row small{color:#637688}.v7-request-row .v7-permission{width:max-content}.v7-request-row .account-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:700px){.v7-request-row{align-items:flex-start;flex-direction:column}.v7-toolbar{width:100%}.v7-toolbar button{max-width:100%}}


/* V8: student search and alphabetic sorting */
.student-toolbar{align-items:center;gap:12px;flex-wrap:wrap}
.student-toolbar .student-search-group{flex:1 1 285px;min-width:190px}
.student-list-v8{flex-wrap:wrap;gap:12px;align-items:center}
.student-list-v8 .student-search-group{flex:1 1 260px;min-width:190px}
.student-search-group{display:flex;flex-direction:column;gap:6px;min-width:0}
.student-search{position:relative;display:flex;align-items:center;width:100%;min-width:0;max-width:none;border:1px solid #d7e8e9;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(16,61,73,.025);transition:border-color .18s,box-shadow .18s}
.student-search:focus-within{border-color:#1e9392;box-shadow:0 0 0 4px rgba(26,147,146,.1)}
.student-search>svg{flex:none;color:#3d8588}
.student-search input{flex:1 1 auto;min-width:0;width:100%;font-size:12px;height:43px;border:0;background:transparent;outline:0;padding:0 30px 0 9px}
.student-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.student-search-clear{position:absolute;right:9px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;border:0;border-radius:7px;width:25px;height:25px;background:#edf4f5;color:#5e7885;cursor:pointer}
.student-search-clear:hover{background:#d6eeee;color:#13777c}
.student-search-clear svg{width:14px;height:14px}
.student-results{font-size:11px;font-weight:680;color:#708b99;min-height:14px;padding-left:5px}
.student-sort-field{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.student-sort-field>label{font-size:11px;font-weight:760;color:#4e6979;white-space:nowrap}
.student-sort-field select{height:43px;min-width:148px;border:1px solid #d7e8e9;background:white;color:#244653;border-radius:11px;padding:0 12px;font-size:12px;font-weight:730;cursor:pointer}
.student-sort-field select:focus-visible{outline:3px solid rgba(26,147,146,.16);border-color:#159898}
.student-sort-field .smart-select{min-width:148px}
.student-sort-field .smart-select-trigger{height:43px;background:#fff}
.student-toolbar .table-actions{margin-left:auto}
.roster-worksheet .student-list-header{align-items:center;gap:16px}
.roster-worksheet .student-list-v8{flex:1 1 400px;justify-content:flex-end}
@media(max-width:950px){.student-toolbar .table-actions{margin-left:0}.roster-worksheet .student-list-header{align-items:flex-start;flex-direction:column}.roster-worksheet .student-list-v8{width:100%;justify-content:flex-start}}
@media(max-width:600px){.student-toolbar .student-search-group,.student-list-v8 .student-search-group{flex-basis:100%;min-width:0}.student-sort-field{width:100%;justify-content:space-between}.student-sort-field .smart-select{min-width:175px}.student-toolbar .table-actions{width:100%;display:flex;flex-wrap:wrap}.student-toolbar .table-actions .btn{flex:1 1 auto}.student-list-v8 #bulk-import{width:100%;justify-content:center}}
