*{box-sizing:border-box;margin:0;padding:0}html,body{overflow-x:hidden;max-width:100vw}html,body{width:100%;position:relative}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Helvetica Neue,sans-serif;line-height:1.6;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg-primary: #F5F7F9;--bg-secondary: #FFFFFF;--text-primary: #212121;--text-secondary: #616161;--text-muted: #9E9E9E;--border-color: #E0E0E0;--shadow-sm: 0 1px 3px rgba(0,0,0,.08);--shadow-md: 0 2px 8px rgba(0,0,0,.1);--shadow-lg: 0 4px 16px rgba(0,0,0,.12)}[data-theme=dark]{--bg-primary: #121212;--bg-secondary: #1E1E1E;--text-primary: #FFFFFF;--text-secondary: #B0B0B0;--text-muted: #808080;--border-color: #333333;--shadow-sm: 0 1px 3px rgba(0,0,0,.3);--shadow-md: 0 2px 8px rgba(0,0,0,.4);--shadow-lg: 0 4px 16px rgba(0,0,0,.5)}body{margin:0;min-width:320px;min-height:100vh;background-color:var(--bg-primary);color:var(--text-primary);transition:background-color .3s ease,color .3s ease;word-wrap:break-word;overflow-wrap:break-word}#root{min-height:100vh;display:flex;flex-direction:column;max-width:100vw;overflow-x:hidden}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.3;color:var(--text-primary);word-wrap:break-word;overflow-wrap:break-word;max-width:100%}h1{font-size:clamp(1.5rem,5vw,2rem)}h2{font-size:clamp(1.25rem,4vw,1.5rem)}h3{font-size:clamp(1.125rem,3vw,1.25rem)}a{color:#1976d2;text-decoration:none;transition:color .2s ease}a:hover{color:#1565c0;text-decoration:underline}p{margin:.5em 0;color:var(--text-primary);word-wrap:break-word;overflow-wrap:break-word;max-width:100%}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--text-muted);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}:root{--primary-blue: #1976D2;--primary-blue-dark: #1565C0;--primary-blue-light: #42A5F5;--secondary-orange: #FF9800;--secondary-orange-dark: #F57C00;--secondary-orange-light: #FFB74D;--success-green: #4CAF50;--success-green-dark: #388E3C;--warning-yellow: #FFC107;--error-red: #F44336;--background: #F5F7F9;--surface: #FFFFFF;--border: #E0E0E0;--divider: #EEEEEE;--text-primary: #212121;--text-secondary: #616161;--text-disabled: #9E9E9E;--text-white: #FFFFFF;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);--shadow-md: 0 4px 6px rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .05);--shadow-lg: 0 10px 20px rgba(0, 0, 0, .1), 0 3px 6px rgba(0, 0, 0, .08);--shadow-hover: 0 8px 16px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .08);--shadow-focus: 0 0 0 4px rgba(25, 118, 210, .15);--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--spacing-2xl: 48px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 16px;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif}[data-theme=dark]{--primary-blue: #64B5F6;--primary-blue-dark: #42A5F5;--primary-blue-light: #90CAF9;--secondary-orange: #FFB74D;--secondary-orange-dark: #FF9800;--secondary-orange-light: #FFCC80;--success-green: #81C784;--success-green-dark: #66BB6A;--warning-yellow: #FFD54F;--error-red: #E57373;--background: #121212;--surface: #1E1E1E;--border: #2C2C2C;--divider: #2A2A2A;--text-primary: #E8E8E8;--text-secondary: #B0B0B0;--text-disabled: #6E6E6E;--text-white: #FFFFFF;--shadow-sm: 0 1px 3px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 6px rgba(0, 0, 0, .5), 0 2px 4px rgba(0, 0, 0, .4);--shadow-lg: 0 10px 20px rgba(0, 0, 0, .6), 0 3px 6px rgba(0, 0, 0, .5);--shadow-hover: 0 8px 16px rgba(0, 0, 0, .7), 0 4px 8px rgba(0, 0, 0, .5);--shadow-focus: 0 0 0 4px rgba(100, 181, 246, .25)}[data-theme=dark] body{background:linear-gradient(135deg,#0a0e27,#0f1419,#000);background-attachment:fixed}[data-theme=dark] .card,[data-theme=dark] .message-card{background:linear-gradient(135deg,#0f143cd9,#0a0e27e6);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border:1px solid rgba(100,181,246,.15);box-shadow:0 8px 32px #0009}[data-theme=dark] .card:hover,[data-theme=dark] .message-card:hover{background:linear-gradient(135deg,#192350e6,#0f143cf2);border-color:#64b5f666;box-shadow:0 12px 40px #64b5f633}[data-theme=dark] .top-nav,[data-theme=dark] .bottom-nav{background:linear-gradient(135deg,#0a0e27e6,#0f143cd9);backdrop-filter:blur(40px);-webkit-backdrop-filter:blur(40px);border-color:#64b5f626;box-shadow:0 4px 32px #000000b3}[data-theme=dark] .form-input,[data-theme=dark] .form-textarea,[data-theme=dark] .form-select{background:linear-gradient(135deg,#0f143cb3,#0a0e27cc);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-color:#64b5f633;box-shadow:0 4px 16px #00000080;color:#fff!important;-webkit-text-fill-color:#FFFFFF}[data-theme=dark] .form-input:focus,[data-theme=dark] .form-textarea:focus,[data-theme=dark] .form-select:focus{background:linear-gradient(135deg,#192350cc,#0f143ce6);border-color:#64b5f680;box-shadow:0 8px 32px #64b5f640;color:#fff!important;-webkit-text-fill-color:#FFFFFF}[data-theme=dark] .form-input::placeholder,[data-theme=dark] .form-textarea::placeholder,[data-theme=dark] .form-select::placeholder{color:#ffffff80!important;opacity:1}[data-theme=dark] .form-input::-webkit-input-placeholder,[data-theme=dark] .form-textarea::-webkit-input-placeholder{color:#ffffff80!important}[data-theme=dark] .form-input::-moz-placeholder,[data-theme=dark] .form-textarea::-moz-placeholder{color:#ffffff80!important}[data-theme=dark] .form-input:-ms-input-placeholder,[data-theme=dark] .form-textarea:-ms-input-placeholder{color:#ffffff80!important}[data-theme=dark] .form-select option{background-color:#1e1e1e;color:#fff}[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{color:#fff!important;-webkit-text-fill-color:#FFFFFF;caret-color:#fff}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#ffffff80!important}[data-theme=dark] [contenteditable=true],[data-theme=dark] [contenteditable]{color:#fff!important;caret-color:#fff}[data-theme=dark] label,[data-theme=dark] .form-label{color:#e8e8e8!important}[data-theme=dark] input:disabled,[data-theme=dark] textarea:disabled,[data-theme=dark] select:disabled{color:#ffffff80!important;opacity:.6}[data-theme=dark] input:-webkit-autofill,[data-theme=dark] input:-webkit-autofill:hover,[data-theme=dark] input:-webkit-autofill:focus,[data-theme=dark] textarea:-webkit-autofill,[data-theme=dark] textarea:-webkit-autofill:hover,[data-theme=dark] textarea:-webkit-autofill:focus{-webkit-text-fill-color:#FFFFFF!important;-webkit-box-shadow:0 0 0px 1000px rgba(15,20,60,.8) inset!important;box-shadow:0 0 0 1000px #0f143ccc inset!important;caret-color:#fff}[data-theme=dark] .empty-state{background:linear-gradient(135deg,#0f143cb3,#0a0e27cc);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-color:#64b5f626}[data-theme=dark] .info-box{background:linear-gradient(135deg,#192350b3,#0f143ccc);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-left:4px solid #64B5F6;border-color:#64b5f633}[data-theme=dark] .tabs{background:linear-gradient(135deg,#0f143ccc,#0a0e27d9);backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px);border-bottom-color:#64b5f633}[data-theme=dark] .tab:hover{background:#19235080}[data-theme=dark] .tab.active{background:linear-gradient(135deg,#192350cc,#0f143ce6);box-shadow:0 4px 16px #64b5f633}[data-theme=dark] .btn-primary{background:linear-gradient(135deg,#1976d2,#1565c0);box-shadow:0 6px 20px #1976d266}[data-theme=dark] .btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#2196f3,#1976d2);box-shadow:0 10px 30px #2196f380}[data-theme=dark] .badge{background:#0f143cb3;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border:1px solid rgba(100,181,246,.2)}[data-theme=dark] .top-nav-mobile-menu{background:linear-gradient(135deg,#0a0e27f2,#0f143ce6);border:1px solid rgba(100,181,246,.25)}body{background:linear-gradient(135deg,#e3f2fd,#f3e5f5,#fce4ec);background-attachment:fixed;color:var(--text-primary);transition:background-color .3s ease,color .3s ease;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden;max-width:100vw;padding-top:60px;padding-bottom:70px;min-height:100vh}@media(min-width:769px){body{padding-top:80px;padding-bottom:0}}*{max-width:100%}html,body,.container,.page-content{max-width:none}::selection{background-color:#1976d233;color:var(--text-primary)}::-moz-selection{background-color:#1976d233;color:var(--text-primary)}[data-theme=dark] ::selection{background-color:#64b5f64d;color:var(--text-primary)}[data-theme=dark] ::-moz-selection{background-color:#64b5f64d;color:var(--text-primary)}.container{max-width:1200px;width:100%;margin:0 auto;padding:var(--spacing-lg);overflow-x:hidden}.container-narrow{max-width:600px;margin:0 auto;padding:var(--spacing-lg)}.card{background:linear-gradient(135deg,#667eea26,#764ba21f);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:var(--radius-lg);box-shadow:0 8px 24px #667eea33;padding:var(--spacing-lg);transition:all .3s cubic-bezier(.4,0,.2,1);border:1px solid rgba(255,255,255,.4);will-change:transform,box-shadow;max-width:100%;word-wrap:break-word;overflow-wrap:break-word}.card:hover{box-shadow:0 16px 32px #667eea4d;background:linear-gradient(135deg,#667eea40,#764ba233);transform:translateY(-2px);border-color:#667eea80}.card-clickable{cursor:pointer;text-decoration:none;color:inherit;display:block;-webkit-tap-highlight-color:transparent;position:relative;overflow:hidden}.card-clickable:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(25,118,210,.03) 0%,transparent 100%);opacity:0;transition:opacity .3s cubic-bezier(.4,0,.2,1);pointer-events:none;z-index:0}.card-clickable:hover:before{opacity:1}.card-clickable:hover{transform:translateY(-3px)}.card-clickable:active{transform:translateY(-1px);box-shadow:var(--shadow-md);transition:transform .1s ease,box-shadow .1s ease}.card-clickable>*{position:relative;z-index:1}.card-header{border-bottom:1px solid var(--divider);padding-bottom:var(--spacing-md);margin-bottom:var(--spacing-md)}.card-title{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin:0;word-wrap:break-word;overflow-wrap:break-word}.card-subtitle{font-size:.875rem;color:var(--text-secondary);margin:var(--spacing-xs) 0 0 0}.btn{padding:10px 20px;border-radius:12px;border:none;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);font-family:var(--font-family);display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-sm);text-decoration:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;position:relative;overflow:hidden;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.btn:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#fff3;transform:translate(-50%,-50%);transition:width .6s,height .6s}.btn:active:before{width:300px;height:300px;transition:width 0s,height 0s}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea4d}.btn-primary:hover:not(:disabled){box-shadow:0 8px 20px #667eea66;transform:translateY(-2px) scale(1.02)}.btn-secondary{background-color:var(--secondary-orange);color:var(--text-white);box-shadow:0 2px 4px #ff980033}.btn-secondary:hover:not(:disabled){background-color:var(--secondary-orange-dark);box-shadow:0 4px 12px #ff98004d;transform:translateY(-1px)}.btn-success{background-color:var(--success-green);color:var(--text-white);box-shadow:0 2px 4px #4caf5033}.btn-success:hover:not(:disabled){background-color:var(--success-green-dark);box-shadow:0 4px 12px #4caf504d;transform:translateY(-1px)}.btn-outline{background-color:transparent;border:2px solid var(--primary-blue);color:var(--primary-blue);box-shadow:none}.btn-outline:hover:not(:disabled){background-color:var(--primary-blue);color:var(--text-white);box-shadow:0 4px 12px #1976d240;transform:translateY(-1px)}.btn-danger{background-color:var(--error-red);color:var(--text-white);box-shadow:0 2px 4px #f4433633}.btn-danger:hover:not(:disabled){background-color:#d32f2f;box-shadow:0 4px 12px #f443364d;transform:translateY(-1px)}.btn-lg{padding:12px 28px;font-size:1rem}.btn-sm{padding:6px 12px;font-size:.8125rem}.btn-block{width:100%}.form-label{display:block;margin-bottom:var(--spacing-xs);color:var(--text-primary);font-weight:500;font-size:.875rem}.form-input,.form-textarea,.form-select{width:100%;padding:12px 14px;border:1px solid rgba(255,255,255,.4);border-radius:12px;font-size:.9375rem;font-family:var(--font-family);transition:all .3s cubic-bezier(.4,0,.2,1);background:linear-gradient(135deg,#667eea1f,#764ba21a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:var(--text-primary);-webkit-appearance:none;appearance:none;box-shadow:0 4px 12px #667eea26}.form-input:hover:not(:focus),.form-textarea:hover:not(:focus),.form-select:hover:not(:focus){border-color:#667eea80}.form-input:focus,.form-textarea:focus,.form-select:focus{outline:none;border-color:#667eeab3;background:linear-gradient(135deg,#667eea33,#764ba226);box-shadow:0 8px 24px #667eea4d;transform:translateY(-2px)}[data-theme=light] .form-input:focus,[data-theme=light] .form-textarea:focus,[data-theme=light] .form-select:focus{background-color:#fafbfc}[data-theme=dark] .form-input:focus,[data-theme=dark] .form-textarea:focus,[data-theme=dark] .form-select:focus{background-color:#252525;box-shadow:0 0 0 4px #64b5f633}.form-textarea{min-height:100px;resize:vertical;white-space:pre-wrap;font-family:inherit}.form-error{background-color:#ffebee;color:var(--error-red);padding:var(--spacing-md);border-radius:var(--radius-md);margin-bottom:var(--spacing-md);border-left:4px solid var(--error-red)}.navbar{background-color:var(--surface);box-shadow:var(--shadow-sm);padding:var(--spacing-md) 0;position:sticky;top:0;z-index:1000;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.navbar-content{max-width:1200px;margin:0 auto;padding:0 var(--spacing-lg);display:flex;flex-direction:column;align-items:flex-start}.navbar-brand{font-size:1.5rem;font-weight:700;color:var(--primary-blue);text-decoration:none;transition:transform .2s ease}.navbar-brand:hover{transform:scale(1.05);text-decoration:none}.navbar-user{display:flex;align-items:center;gap:var(--spacing-md)}.navbar-user-info{color:var(--text-secondary);font-size:.875rem}.navbar-user-name{color:var(--text-primary);font-weight:500}.navbar-mobile-menu{display:flex;flex-direction:column;gap:var(--spacing-sm);padding-top:var(--spacing-md);width:100%;border-top:1px solid var(--divider);animation:slideDown .2s ease-out}.navbar-mobile-toggle{width:auto;padding:8px 12px;display:block}.navbar-desktop{display:none}@media(min-width:641px){.navbar-content{flex-direction:row;align-items:center;justify-content:space-between}.navbar-desktop{display:flex}.navbar-mobile-toggle,.navbar-mobile-menu{display:none}}.grid{display:grid;gap:var(--spacing-lg);max-width:100%}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-auto{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.grid-library{grid-template-columns:repeat(2,1fr);gap:var(--spacing-lg)}@media(min-width:641px)and (max-width:1024px){.grid-library{grid-template-columns:repeat(3,1fr)}}@media(min-width:1025px){.grid-library{grid-template-columns:repeat(4,1fr)}}.grid-sidebar{display:grid;grid-template-columns:2fr 1fr;gap:var(--spacing-lg)}@media(max-width:1024px){.grid-sidebar{grid-template-columns:1fr}}@media(max-width:768px){.grid{gap:var(--spacing-md)}.grid-2,.grid-3,.grid-auto{grid-template-columns:1fr}}.badge{display:inline-block;padding:5px 12px;border-radius:20px;font-size:.75rem;font-weight:600;letter-spacing:.02em;transition:all .3s cubic-bezier(.4,0,.2,1);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 2px 6px #00000014}.badge-primary{background-color:#1976d21f;color:var(--primary-blue);border:1px solid rgba(25,118,210,.2)}.badge-secondary{background-color:#9e9e9e1f;color:var(--text-secondary);border:1px solid rgba(158,158,158,.2)}.badge-success{background-color:#4caf501f;color:var(--success-green);border:1px solid rgba(76,175,80,.2)}.badge-warning{background-color:#ff98001f;color:var(--secondary-orange);border:1px solid rgba(255,152,0,.2)}.tabs{display:flex;gap:var(--spacing-sm);border-bottom:2px solid rgba(102,126,234,.2);margin-bottom:var(--spacing-lg);position:relative;flex-wrap:wrap;background:linear-gradient(135deg,#667eea26,#764ba21f);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:12px 12px 0 0;padding:4px}.tab{padding:var(--spacing-md) var(--spacing-lg);border:none;background:transparent;color:var(--text-secondary);font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);border-bottom:3px solid transparent;margin-bottom:-2px;position:relative;font-family:var(--font-family);-webkit-tap-highlight-color:transparent;border-radius:12px 12px 0 0;min-width:0;overflow:hidden;text-overflow:ellipsis}.tab:before{content:"";position:absolute;bottom:0;left:50%;width:0;height:3px;background:var(--primary-blue);transform:translate(-50%);transition:width .3s cubic-bezier(.4,0,.2,1);border-radius:2px 2px 0 0}.tab:hover{color:#667eea;background:#667eea1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.tab.active{color:#667eea;font-weight:600;background:#667eea26;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 2px 8px #667eea26}.tab.active:before{width:100%}@media(max-width:640px){.tabs{gap:0;flex-wrap:nowrap}.tab{flex:1;min-width:0;padding:var(--spacing-sm) 4px;font-size:.75rem}.tab .badge{display:none}.tab span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}}.message-list{display:flex;flex-direction:column;gap:var(--spacing-md)}.message-card{background:linear-gradient(135deg,#667eea26,#764ba21f);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:16px;padding:var(--spacing-md);border:1px solid rgba(255,255,255,.4);box-shadow:0 8px 24px #667eea33;transition:all .3s cubic-bezier(.4,0,.2,1)}.message-card:hover{transform:translateY(-2px);box-shadow:0 16px 32px #667eea4d;background:linear-gradient(135deg,#667eea40,#764ba233)}.message-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--spacing-sm)}.message-author{font-weight:600;color:var(--text-primary)}.message-timestamp{font-size:.75rem;color:var(--text-disabled)}.message-content{color:var(--text-primary);line-height:1.6;margin:var(--spacing-sm) 0;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}.message-replies{margin-top:var(--spacing-md);padding-left:var(--spacing-lg);border-left:3px solid var(--divider)}.reply-card{background-color:var(--background);padding:var(--spacing-sm);border-radius:var(--radius-md);margin-top:var(--spacing-sm)}.reply-card p{white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}.action-bar{display:flex;gap:var(--spacing-sm);margin-top:var(--spacing-md)}.empty-state{text-align:center;padding:var(--spacing-2xl) var(--spacing-lg);color:var(--text-secondary);animation:fadeIn .6s cubic-bezier(.4,0,.2,1);border-radius:20px;background:linear-gradient(135deg,#667eea26,#764ba21f);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.4);box-shadow:0 8px 24px #667eea33}.empty-state-icon{font-size:3.5rem;margin-bottom:var(--spacing-md);opacity:.6;animation:float 3s ease-in-out infinite;display:inline-block}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.empty-state h3{margin-bottom:var(--spacing-sm);font-size:1.25rem}.empty-state p{max-width:400px;margin-left:auto;margin-right:auto;line-height:1.6}.loading{display:flex;justify-content:center;align-items:center;min-height:60vh;font-size:1.1rem;color:var(--text-secondary)}.page-header{margin-bottom:var(--spacing-xl);animation:fadeIn .5s cubic-bezier(.4,0,.2,1)}.page-title{font-size:2rem;font-weight:700;color:var(--text-primary);margin:0 0 var(--spacing-sm) 0;letter-spacing:-.02em;line-height:1.2}.page-subtitle{font-size:1rem;color:var(--text-secondary);margin:0;line-height:1.5}.info-box{background:linear-gradient(135deg,#667eea33,#764ba226);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-left:4px solid #667eea;padding:var(--spacing-md);border-radius:12px;margin-bottom:var(--spacing-md);box-shadow:0 8px 24px #667eea40;border:1px solid rgba(255,255,255,.4)}.info-box p{margin:var(--spacing-xs) 0;color:var(--text-primary)}.info-box strong{color:var(--text-primary)}.file-input{display:block;width:100%;padding:var(--spacing-sm);border:2px dashed var(--border);border-radius:var(--radius-md);cursor:pointer;transition:border-color .2s ease}.file-input:hover{border-color:var(--primary-blue)}.text-center{text-align:center}.text-muted{color:var(--text-secondary)}.mt-xs{margin-top:var(--spacing-xs)}.mt-sm{margin-top:var(--spacing-sm)}.mt-md{margin-top:var(--spacing-md)}.mt-lg{margin-top:var(--spacing-lg)}.mt-xl{margin-top:var(--spacing-xl)}.mb-xs{margin-bottom:var(--spacing-xs)}.mb-sm{margin-bottom:var(--spacing-sm)}.mb-md{margin-bottom:var(--spacing-md)}.mb-lg{margin-bottom:var(--spacing-lg)}.mb-xl{margin-bottom:var(--spacing-xl)}.ml-sm{margin-left:var(--spacing-sm)}.ml-md{margin-left:var(--spacing-md)}.ml-lg{margin-left:var(--spacing-lg)}.mr-sm{margin-right:var(--spacing-sm)}.mr-md{margin-right:var(--spacing-md)}.mr-lg{margin-right:var(--spacing-lg)}.p-sm{padding:var(--spacing-sm)}.p-md{padding:var(--spacing-md)}.p-lg{padding:var(--spacing-lg)}.p-xl{padding:var(--spacing-xl)}.flex{display:flex}.flex-column{flex-direction:column}.flex-center{justify-content:center;align-items:center}.flex-between{justify-content:space-between;align-items:center}.gap-xs{gap:var(--spacing-xs)}.gap-sm{gap:var(--spacing-sm)}.gap-md{gap:var(--spacing-md)}.gap-lg{gap:var(--spacing-lg)}@media(max-width:640px){.container,.container-narrow{padding:var(--spacing-md)}.page-title{font-size:1.5rem}h2{font-size:1.25rem}.card{padding:var(--spacing-md)}.navbar{padding:var(--spacing-sm) 0}.navbar-content{padding:0 var(--spacing-md);flex-direction:column;gap:var(--spacing-sm);align-items:flex-start}.navbar-brand{font-size:1.25rem}.navbar-user{width:100%;flex-direction:column;align-items:flex-start;gap:var(--spacing-sm)}.btn{width:100%;justify-content:center}.btn-sm{width:auto}.form-input,.form-textarea,.form-select{font-size:16px}.message-card{padding:var(--spacing-sm)}.message-header{flex-direction:column;align-items:flex-start;gap:var(--spacing-xs)}.message-timestamp{font-size:.7rem}.action-bar{flex-direction:column}.action-bar input{width:100%!important}.action-bar button{width:100%}.page-header{margin-bottom:var(--spacing-lg)}.info-box{padding:var(--spacing-sm)}.empty-state{padding:var(--spacing-lg)}.empty-state-icon{font-size:2rem}}@media(min-width:641px)and (max-width:1024px){.container{padding:var(--spacing-lg) var(--spacing-md)}.navbar-content{padding:0 var(--spacing-md)}.grid-auto{grid-template-columns:repeat(2,1fr)}}@media(min-width:1440px){.container{max-width:1400px}}html{scroll-behavior:smooth}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--background);border-radius:10px}::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--primary-blue) 0%,var(--primary-blue-dark) 100%);border-radius:10px;border:2px solid var(--background);transition:background .3s ease}::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--primary-blue-dark) 0%,var(--primary-blue) 100%)}::-webkit-scrollbar-thumb:active{background:var(--primary-blue-dark)}*{scrollbar-width:thin;scrollbar-color:var(--primary-blue) var(--background)}a{position:relative}a:not(.btn):not(.card-clickable):not(.navbar-brand):after{content:"";position:absolute;width:0;height:2px;bottom:-2px;left:0;background-color:var(--primary-blue);transition:width .3s ease}a:not(.btn):not(.card-clickable):not(.navbar-brand):hover:after{width:100%}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.98)}}.loading{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:flex;align-items:center;gap:var(--spacing-sm)}.loading:after{content:"...";display:inline-block;animation:dots 1.5s steps(4,end) infinite}@keyframes fadeIn{0%{opacity:0;transform:translateY(20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.card{animation:fadeIn .5s cubic-bezier(.4,0,.2,1)}.grid>*{animation:fadeInUp .5s cubic-bezier(.4,0,.2,1) backwards}.grid>*:nth-child(1){animation-delay:.05s}.grid>*:nth-child(2){animation-delay:.1s}.grid>*:nth-child(3){animation-delay:.15s}.grid>*:nth-child(4){animation-delay:.2s}.grid>*:nth-child(5){animation-delay:.25s}.grid>*:nth-child(6){animation-delay:.3s}.grid>*:nth-child(n+7){animation-delay:.35s}@media(hover:none)and (pointer:coarse){.btn:hover,.card-clickable:hover{transform:none}.btn:active{transform:scale(.96)}.card-clickable:active{transform:scale(.98)}}.btn:focus-visible,.form-input:focus-visible,.form-textarea:focus-visible,.form-select:focus-visible{outline:3px solid var(--primary-blue);outline-offset:2px}.btn,.badge,.navbar-brand{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.top-nav{background:linear-gradient(135deg,#667eea26,#764ba21f);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:0 4px 24px #667eea40;padding:var(--spacing-md) 0;position:fixed;top:0;left:0;right:0;z-index:1000;border-bottom:1px solid rgba(255,255,255,.4);display:none}.top-nav-content{max-width:1200px;margin:0 auto;padding:0 var(--spacing-lg);display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg)}.top-nav-brand{flex-shrink:0}.top-nav-links{display:flex;gap:var(--spacing-md);align-items:center}.top-nav-link{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md);color:var(--text-secondary);text-decoration:none;font-weight:500;transition:all .2s ease;position:relative}.top-nav-link:hover{color:var(--primary-blue);background-color:#1976d20d;text-decoration:none}.top-nav-link.active{color:var(--primary-blue);background-color:#1976d21a}.top-nav-link.active:after{display:none}.top-nav-user,.top-nav-right{display:flex;align-items:center;gap:var(--spacing-md)}.top-nav-profile-desktop{display:flex;align-items:center}.top-nav-profile-mobile{display:none}.profile-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--primary-blue) 0%,var(--primary-blue-dark) 100%);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #1976d24d;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;position:relative;overflow:hidden}.profile-avatar:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.2) 0%,transparent 100%);opacity:0;transition:opacity .3s ease}.profile-avatar:hover{transform:scale(1.08) rotate(3deg);box-shadow:0 6px 16px #1976d266}.profile-avatar:hover:before{opacity:1}.profile-avatar:active{transform:scale(.95) rotate(0);transition:transform .1s ease}.top-nav-mobile-toggle{display:none}.top-nav-mobile-menu{position:absolute;top:100%;right:var(--spacing-lg);background:linear-gradient(135deg,#667eea33,#764ba226);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:0 12px 32px #667eea4d;border-radius:16px;padding:var(--spacing-md);min-width:200px;animation:slideDown .2s ease-out;border:1px solid rgba(255,255,255,.5)}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:linear-gradient(135deg,#667eea26,#764ba21f);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:0 -4px 24px #667eea40;display:flex;justify-content:space-around;padding:var(--spacing-xs) 0;z-index:1000;border-top:1px solid rgba(255,255,255,.4)}.bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;padding:var(--spacing-xs);color:var(--text-secondary);text-decoration:none;transition:all .3s cubic-bezier(.4,0,.2,1);-webkit-tap-highlight-color:transparent;position:relative;border-radius:var(--radius-md)}.bottom-nav-item:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:40px;height:3px;background:var(--primary-blue);border-radius:0 0 3px 3px;opacity:0;transition:opacity .3s cubic-bezier(.4,0,.2,1)}.bottom-nav-item:hover{text-decoration:none;background-color:#1976d20d}.bottom-nav-item.active{color:var(--primary-blue)}.bottom-nav-item.active:before{opacity:1}.bottom-nav-icon{font-size:1.5rem;margin-bottom:2px;transition:transform .3s cubic-bezier(.4,0,.2,1)}.bottom-nav-item.active .bottom-nav-icon{transform:scale(1.1)}.bottom-nav-label{font-size:.7rem;font-weight:500;transition:font-weight .3s ease}.bottom-nav-item.active .bottom-nav-label{font-weight:600}.page-content{min-height:calc(100vh - 120px);max-width:100vw;overflow-x:hidden}.page-content.with-marquee{padding-top:45px}@media(min-width:769px){.page-content.with-marquee{padding-top:45px}}@media(min-width:769px){.top-nav{display:block}.bottom-nav,.top-nav-profile-mobile{display:none}.top-nav-profile-desktop{display:flex}}@media(max-width:768px){.top-nav{display:block}.top-nav-links,.top-nav-profile-desktop{display:none}.top-nav-profile-mobile{display:flex}.top-nav-content{padding:0 var(--spacing-md)}.navbar-brand{font-size:1.125rem}.profile-avatar{width:36px;height:36px;font-size:.8125rem}}[data-theme=dark] .form-error{background-color:#e5737326;color:var(--error-red)}[data-theme=dark] .info-box,[data-theme=dark] .tab:hover{background-color:#64b5f61a}[data-theme=dark] .badge-primary{background-color:#64b5f633}[data-theme=dark] .badge-secondary{background-color:#b0b0b033}[data-theme=dark] .badge-success{background-color:#81c78433}[data-theme=dark] .badge-warning{background-color:#ffb74d33}[data-theme=dark] .top-nav-link:hover{background-color:#64b5f61a}[data-theme=dark] .top-nav-link.active{background-color:#64b5f626}[data-theme=dark] .btn-danger:hover:not(:disabled){background-color:#c62828}.loader-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:2rem;min-height:50vh;width:100%}.loader-container.full-page{min-height:100vh;width:100%;background:var(--background);position:fixed;top:0;left:0;z-index:9999}.spinner{border:3px solid var(--surface);border-top:3px solid var(--primary-blue);border-radius:50%;animation:spin .8s linear infinite}.spinner-sm{width:20px;height:20px;border-width:2px}.spinner-md{width:40px;height:40px}.spinner-lg{width:60px;height:60px;border-width:4px}.loader-message{font-size:.875rem;color:var(--text-secondary);font-weight:400;text-align:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:640px){.spinner-sm{width:16px;height:16px}.spinner-md{width:32px;height:32px}.spinner-lg{width:48px;height:48px}.loader-message{font-size:.8125rem}}.notification-bell{position:relative}.bell-button{position:relative;background:none;border:none;font-size:1.5rem;cursor:pointer;padding:.5rem;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.bell-button:hover{transform:scale(1.1)}.bell-badge{position:absolute;top:0;right:0;background-color:#f44336;color:#fff;font-size:.625rem;font-weight:600;padding:.125rem .375rem;border-radius:10px;min-width:18px;text-align:center}.notification-dropdown{position:absolute;top:calc(100% + .5rem);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:0 4px 20px #00000026;width:360px;max-width:90vw;max-height:500px;display:flex;flex-direction:column;z-index:1000;animation:dropdownSlideIn .2s ease}@keyframes dropdownSlideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.notification-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center}.notification-header h3{margin:0;font-size:1.125rem;font-weight:600;color:var(--text-primary)}.unread-count{font-size:.8125rem;color:var(--primary-blue);font-weight:500}.notification-list{overflow-y:auto;max-height:400px}.notification-loading{padding:2rem;text-align:center;color:var(--text-secondary)}.notification-empty{padding:2rem;text-align:center}.notification-empty .empty-icon{font-size:3rem;margin-bottom:.5rem;opacity:.5}.notification-empty p{margin:0;color:var(--text-secondary);font-size:.875rem}.notification-item{padding:1rem 1.25rem;border-bottom:1px solid var(--border-color);cursor:pointer;display:flex;gap:.75rem;align-items:flex-start;position:relative;transition:background-color .2s ease}.notification-item:last-child{border-bottom:none}.notification-item:hover{background-color:var(--background)}.notification-item.unread{background-color:#1976d214}.notification-item.unread:hover{background-color:#1976d226}.notification-icon{font-size:1.5rem;flex-shrink:0}.notification-content{flex:1;min-width:0}.notification-title{font-weight:600;font-size:.875rem;color:var(--text-primary);margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-preview{font-size:.8125rem;color:var(--text-secondary);margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}.notification-meta{display:flex;gap:.5rem;align-items:center;font-size:.75rem;color:var(--text-muted)}.notification-classroom{font-weight:500;color:var(--primary-blue)}.notification-time:before{content:"•";margin-right:.5rem}.unread-dot{width:8px;height:8px;background-color:var(--primary-blue);border-radius:50%;flex-shrink:0;margin-top:.25rem}@media(max-width:768px){.notification-dropdown{width:320px;right:-1rem}.notification-header,.notification-item{padding:.875rem 1rem}}.marquee-container{width:100%;background:linear-gradient(90deg,#667eea,#764ba2);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow:hidden;padding:.75rem 0;border-bottom:1px solid rgba(255,255,255,.3);position:fixed;top:60px;left:0;right:0;z-index:998;box-shadow:0 2px 8px #667eea26}@media(min-width:769px){.marquee-container{top:80px}}.marquee-content{display:flex;width:fit-content;animation:marquee 30s linear infinite}.marquee-text{color:#fff;font-size:.9375rem;font-weight:500;white-space:nowrap;padding:0 4rem;display:inline-block}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-33.333%)}}.marquee-container:hover .marquee-content{animation-play-state:paused}@media(max-width:768px){.marquee-text{font-size:.875rem;padding:0 3rem}}@media(max-width:480px){.marquee-text{font-size:.8125rem;padding:0 2rem}.marquee-container{padding:.625rem 0}}[data-theme=dark] .marquee-container{background:linear-gradient(90deg,#1a237e,#0d47a1);border-bottom:1px solid rgba(100,181,246,.3);box-shadow:0 2px 16px #000000b3}.news-list{display:flex;flex-direction:column;gap:var(--spacing-sm)}.news-card{background:#ffffffb3;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);border-radius:16px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden;box-shadow:0 4px 12px #0000000f}.news-card:hover{border-color:#667eea4d;box-shadow:0 8px 20px #667eea26;transform:translateY(-2px);background:#ffffffd9}.news-card-header{display:flex;align-items:flex-start;gap:var(--spacing-md);padding:var(--spacing-md)}.news-thumbnail{flex-shrink:0;max-width:120px;min-width:80px;border-radius:var(--radius-md);overflow:hidden;background:var(--bg-secondary);display:flex;align-items:center;justify-content:center}.news-thumbnail img{width:100%;height:auto;max-height:200px;object-fit:contain;display:block}.news-thumbnail-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.news-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.news-title{font-size:1rem;font-weight:600;color:var(--text-primary);margin:0;line-height:1.4;word-break:break-word;overflow-wrap:break-word}.news-preview{font-size:.875rem;color:var(--text-secondary);margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.news-meta{display:flex;align-items:center;gap:var(--spacing-sm);font-size:.75rem;color:var(--text-muted)}.news-author{font-weight:500}.news-date:before{content:"•";margin-right:var(--spacing-sm)}.news-expand-icon{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);transition:color .2s ease}.news-card:hover .news-expand-icon{color:var(--primary-color)}@media(max-width:768px){.news-card-header{gap:var(--spacing-sm);padding:var(--spacing-sm)}.news-thumbnail{max-width:100px;min-width:60px}.news-thumbnail img{max-height:150px}.news-title{font-size:.9375rem}.news-preview{font-size:.8125rem}.news-meta{font-size:.6875rem}.news-expand-icon{width:28px;height:28px}}@media(max-width:480px){.news-card-header{flex-direction:column;align-items:flex-start;position:relative}.news-thumbnail{max-width:100%;width:100%;min-width:unset}.news-thumbnail img{max-height:250px}.news-content{width:100%}.news-expand-icon{position:absolute;right:var(--spacing-sm);top:var(--spacing-sm)}}[data-theme=dark] .news-card{background:linear-gradient(135deg,#0f143cd9,#0a0e27e6);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border:1px solid rgba(100,181,246,.15);box-shadow:0 8px 32px #0009}[data-theme=dark] .news-card:hover{background:linear-gradient(135deg,#192350e6,#0f143cf2);border-color:#64b5f666;box-shadow:0 12px 40px #64b5f633}[data-theme=dark] .news-thumbnail-placeholder{background:linear-gradient(135deg,#64b5f6,#42a5f5)}@media(prefers-color-scheme:dark){.news-card:hover{box-shadow:0 2px 8px #0000004d}}.fab-container{position:fixed;bottom:80px;right:1.5rem;z-index:999;display:flex;flex-direction:column;align-items:flex-end;gap:1rem}.fab-main{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#1976d2,#1565c0);border:none;box-shadow:0 4px 12px #1976d266;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;z-index:1000}.fab-main:hover{transform:scale(1.1);box-shadow:0 6px 16px #1976d280}.fab-main:active{transform:scale(.95)}.fab-main.open{transform:rotate(45deg);background:linear-gradient(135deg,#f44336,#d32f2f);box-shadow:0 4px 12px #f4433666}.fab-main.open:hover{transform:rotate(45deg) scale(1.1)}.fab-icon{font-size:1.75rem;font-weight:300;color:#fff;line-height:1;transition:transform .3s ease}.fab-actions{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.5rem;animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fab-action{display:flex;align-items:center;gap:.75rem;background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:.75rem 1rem;cursor:pointer;box-shadow:0 2px 8px #00000026;transition:all .2s ease;white-space:nowrap;animation:slideIn .3s cubic-bezier(.4,0,.2,1) both}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.fab-action:hover{transform:translate(-4px);box-shadow:0 4px 12px #0003;background:var(--background)}.fab-action-icon{font-size:1.25rem;display:flex;align-items:center;justify-content:center}.fab-action-label{font-size:.875rem;font-weight:500;color:var(--text-primary)}@media(max-width:768px){.fab-container{right:1rem;bottom:70px}.fab-main{width:52px;height:52px}.fab-icon{font-size:1.5rem}.fab-action{padding:.625rem .875rem}.fab-action-label{font-size:.8125rem}}.library-page{min-height:100vh;background:linear-gradient(135deg,#e3f2fd,#f3e5f5,#fce4ec)}.library-container{max-width:1200px;margin:0 auto;padding:20px}.library-header{text-align:center;margin-bottom:32px;animation:fadeInDown .6s ease-out}.library-header-content{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:12px;flex-wrap:wrap}.library-title{font-size:2rem;font-weight:700;color:#1a237e;margin:0;display:flex;align-items:center;gap:12px}.library-icon-wrapper{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px;color:#fff;box-shadow:0 8px 16px #667eea4d}.admin-access-btn{display:flex;align-items:center;gap:8px;padding:10px 20px;background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff;border:none;border-radius:12px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #f093fb4d}.admin-access-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #f093fb66}.admin-access-btn:active{transform:translateY(0)}.library-subtitle{font-size:.9375rem;color:#5e35b1;margin:0;opacity:.8}.search-bar-wrapper{margin-bottom:32px;animation:fadeInDown .6s ease-out .1s both}.search-bar{position:relative;max-width:600px;margin:0 auto}.search-bar input{width:100%;padding:16px 48px;border:none;border-radius:16px;font-size:.9375rem;background:linear-gradient(135deg,#667eea1f,#764ba21a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 4px 12px #667eea26;border:1px solid rgba(255,255,255,.3);transition:all .3s ease;color:#1a237e}.search-bar input::placeholder{color:#9575cd;opacity:.6}.search-bar input:focus{outline:none;background:linear-gradient(135deg,#667eea33,#764ba226);box-shadow:0 8px 24px #667eea40;border-color:#667eea80;transform:translateY(-2px)}.search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#7e57c2;pointer-events:none}.search-clear{position:absolute;right:16px;top:50%;transform:translateY(-50%);background:none;border:none;color:#9575cd;font-size:24px;cursor:pointer;padding:4px 8px;line-height:1;transition:color .2s}.search-clear:hover{color:#5e35b1}.library-section{margin-bottom:48px;animation:fadeInUp .6s ease-out}.section-header{display:flex;align-items:center;gap:12px;margin-bottom:20px;color:#1a237e}.section-header h2{font-size:1.375rem;font-weight:600;margin:0;flex:1}.section-header svg{color:#7e57c2}.new-arrivals-header .lightbulb-icon{color:#ffd54f;filter:drop-shadow(0 0 8px rgba(255,213,79,.4))}.clear-filter-btn{padding:6px 16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:20px;font-size:.875rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.clear-filter-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.horizontal-scroll{display:flex;gap:16px;overflow-x:auto;padding:8px 0 16px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b39ddb #f3e5f5}.horizontal-scroll::-webkit-scrollbar{height:6px}.horizontal-scroll::-webkit-scrollbar-track{background:#f3e5f5;border-radius:10px}.horizontal-scroll::-webkit-scrollbar-thumb{background:#b39ddb;border-radius:10px}.horizontal-scroll::-webkit-scrollbar-thumb:hover{background:#9575cd}.book-card-horizontal{flex:0 0 280px;background:linear-gradient(135deg,#667eea1f,#764ba21a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.3);border-radius:16px;padding:12px;display:flex;gap:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea26}.book-card-horizontal:hover{transform:translateY(-4px);box-shadow:0 12px 24px #667eea40;background:linear-gradient(135deg,#667eea33,#764ba226);border-color:#667eea66}.book-cover{width:80px;height:120px;border-radius:8px;object-fit:cover;box-shadow:0 4px 8px #0000001a}.book-cover-placeholder{background:linear-gradient(135deg,#b39ddb,#9575cd);display:flex;align-items:center;justify-content:center;color:#fff}.book-info{flex:1;display:flex;flex-direction:column;justify-content:center;gap:4px}.book-title{font-size:.9375rem;font-weight:600;color:#1a237e;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}.book-author{font-size:.8125rem;color:#7e57c2;margin:0;opacity:.8}.category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}@media(max-width:768px){.category-grid{grid-template-columns:repeat(2,1fr)}}.category-card{position:relative;background:linear-gradient(135deg,#667eea1f,#764ba21a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.3);border-radius:20px;padding:24px 16px;text-align:center;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea26;overflow:hidden}.category-card:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 12px 32px #667eea4d;background:linear-gradient(135deg,#667eea33,#764ba226);border-color:#667eea66}.category-card:before{content:"";position:absolute;inset:0;background:inherit;opacity:0;transition:opacity .3s ease}.category-card:hover:before{opacity:.1}.category-icon-wrapper{width:64px;height:64px;margin:0 auto 12px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 8px 16px #00000026;transition:all .3s ease}.category-card:hover .category-icon-wrapper{transform:scale(1.1) rotate(5deg);box-shadow:0 12px 24px #0003}.category-name{font-size:.9375rem;font-weight:600;color:#1a237e;margin:0 0 4px}.category-count{font-size:.8125rem;color:#7e57c2;margin:0;opacity:.7}.category-arrow{position:absolute;top:16px;right:16px;color:#b39ddb;opacity:0;transition:all .3s ease}.category-card:hover .category-arrow{opacity:1;transform:translate(4px)}.books-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:24px}@media(max-width:768px){.books-grid{grid-template-columns:repeat(2,1fr);gap:16px}}.book-card{background:linear-gradient(135deg,#667eea1f,#764ba21a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.3);border-radius:16px;overflow:hidden;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea26}.book-card:hover{transform:translateY(-8px);box-shadow:0 16px 32px #667eea4d;background:linear-gradient(135deg,#667eea33,#764ba226);border-color:#667eea66}.book-cover-vertical{width:100%;aspect-ratio:2/3;object-fit:cover}.book-details{padding:16px}.book-title-vertical{font-size:.9375rem;font-weight:600;color:#1a237e;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}.book-author-vertical{font-size:.8125rem;color:#7e57c2;margin:0 0 12px;opacity:.8}.view-book-btn{width:100%;padding:10px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.view-book-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.loading-state{text-align:center;padding:60px 20px;color:#7e57c2}.loading-spinner{width:48px;height:48px;border:4px solid #e1bee7;border-top-color:#7e57c2;border-radius:50%;margin:0 auto 16px;animation:spin 1s linear infinite}.empty-state{text-align:center;padding:60px 20px;background:#ffffff80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;color:#7e57c2}.empty-state svg{color:#b39ddb;margin-bottom:16px}.empty-state h3{font-size:1.25rem;font-weight:600;color:#5e35b1;margin:0 0 8px}.empty-state p{font-size:.9375rem;color:#9575cd;margin:0;opacity:.8}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.library-container{padding:70px 16px 16px}.library-header-content{flex-direction:column;gap:12px}.library-title{font-size:1.5rem}.admin-access-btn{width:100%;justify-content:center;font-size:.85rem;padding:10px 16px}.section-header h2{font-size:1.125rem}.book-card-horizontal{flex:0 0 240px}.category-grid,.books-grid{gap:12px}}[data-theme=dark] .library-page{background:linear-gradient(135deg,#0a0e27,#0f1419,#000)}[data-theme=dark] .book-card-horizontal,[data-theme=dark] .category-card,[data-theme=dark] .book-card{background:linear-gradient(135deg,#0f143cd9,#0a0e27e6);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border:1px solid rgba(100,181,246,.15);box-shadow:0 8px 32px #0009}[data-theme=dark] .book-card-horizontal:hover,[data-theme=dark] .category-card:hover,[data-theme=dark] .book-card:hover{background:linear-gradient(135deg,#192350e6,#0f143cf2);border-color:#64b5f666;box-shadow:0 12px 40px #64b5f633}[data-theme=dark] .search-bar input{background:linear-gradient(135deg,#0f143cb3,#0a0e27cc);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-color:#64b5f633;color:#e8e8e8}[data-theme=dark] .search-bar input::placeholder{color:#b0b0b0}[data-theme=dark] .search-bar input:focus{background:linear-gradient(135deg,#192350cc,#0f143ce6);border-color:#64b5f680;box-shadow:0 8px 32px #64b5f640}[data-theme=dark] .loading-state,[data-theme=dark] .empty-state{background:linear-gradient(135deg,#0f143cb3,#0a0e27cc);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-color:#64b5f626}.library-admin-page{padding:80px 0;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);min-height:100vh}.library-admin-container{max-width:1200px;margin:0 auto;padding:0 20px}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;flex-wrap:wrap;gap:15px}.admin-title{font-size:2rem;font-weight:700;color:#1a202c;display:flex;align-items:center;gap:12px}.admin-title svg{color:#667eea}.add-book-btn{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 24px;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d}.add-book-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.add-book-btn:active{transform:translateY(0)}.message-banner{display:flex;align-items:center;gap:12px;padding:16px 20px;border-radius:12px;margin-bottom:20px;font-weight:500;animation:slideDown .3s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.message-banner.success{background:linear-gradient(135deg,#d4edda,#c3e6cb);color:#155724;border:1px solid #c3e6cb}.message-banner.error{background:linear-gradient(135deg,#f8d7da,#f5c6cb);color:#721c24;border:1px solid #f5c6cb}.upload-form-wrapper{background:#fff;border-radius:16px;padding:30px;margin-bottom:30px;box-shadow:0 4px 20px #00000014;animation:fadeIn .3s ease}.upload-form{width:100%}.form-title{font-size:1.5rem;font-weight:600;color:#1a202c;margin-bottom:25px;display:flex;align-items:center;gap:10px}.form-title svg{color:#667eea}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:25px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group.full-width{grid-column:1 / -1}.form-group label{font-weight:600;color:#2d3748;font-size:.9rem}.form-group input[type=text],.form-group input[type=file],.form-group select,.form-group textarea{padding:12px 16px;border:2px solid #e2e8f0;border-radius:10px;font-size:1rem;transition:all .3s ease;font-family:inherit;background-color:#fff;color:#2d3748}.form-group select{appearance:auto;-webkit-appearance:menulist;-moz-appearance:menulist;cursor:pointer;background-image:none}.form-group select option{padding:12px;background-color:#fff;color:#2d3748}.form-group input[type=text]:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input[type=file]{padding:10px;cursor:pointer}.form-group textarea{resize:vertical;min-height:100px}.file-name{font-size:.875rem;color:#4a5568;font-style:italic}.checkboxes{display:flex;flex-direction:row;gap:20px}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:500;color:#2d3748}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#667eea}.form-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:10px}.cancel-btn,.submit-btn{padding:12px 24px;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;border:none;display:flex;align-items:center;gap:8px}.cancel-btn{background:#e2e8f0;color:#4a5568}.cancel-btn:hover{background:#cbd5e0}.submit-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea4d}.submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.submit-btn:disabled{opacity:.7;cursor:not-allowed}.spinner{width:16px;height:16px;border:2px solid #ffffff;border-top:2px solid transparent;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.books-list-section{background:#fff;border-radius:16px;padding:30px;box-shadow:0 4px 20px #00000014}.section-title{font-size:1.5rem;font-weight:600;color:#1a202c;margin-bottom:25px;display:flex;align-items:center;gap:10px}.section-title svg{color:#667eea}.loading-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#718096}.loading-spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-top:4px solid #667eea;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:15px}.empty-state svg{color:#cbd5e0;margin-bottom:15px}.empty-state h3{font-size:1.25rem;font-weight:600;color:#2d3748;margin-bottom:8px}.empty-state p{color:#718096;font-size:.95rem}.admin-books-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.admin-book-card{background:linear-gradient(135deg,#f5f7fa,#fff);border-radius:12px;overflow:hidden;border:2px solid #e2e8f0;transition:all .3s ease;display:flex;flex-direction:column}.admin-book-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #0000001f;border-color:#667eea}.book-card-header{width:100%;height:200px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);position:relative}.admin-book-cover{width:100%;height:100%;object-fit:cover}.admin-book-cover.book-cover-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea1a,#764ba21a);color:#667eea}.book-card-body{padding:16px;flex:1}.admin-book-title{font-size:1.1rem;font-weight:600;color:#1a202c;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.admin-book-author{font-size:.9rem;color:#718096;margin-bottom:8px}.admin-book-category{font-size:.85rem;color:#667eea;font-weight:600;margin-bottom:10px}.book-badges{display:flex;gap:8px;flex-wrap:wrap}.badge{padding:4px 10px;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.badge.trending{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff}.badge.new{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.book-card-actions{padding:12px 16px;border-top:2px solid #e2e8f0;display:flex;justify-content:flex-end;gap:8px}.delete-btn{background:linear-gradient(135deg,#f5576c,#f093fb);color:#fff;border:none;padding:8px 12px;border-radius:8px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:6px}.delete-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #f5576c4d}@media(max-width:768px){.admin-header{flex-direction:column;align-items:flex-start}.admin-title{font-size:1.5rem}.add-book-btn{width:100%;justify-content:center}.form-grid{grid-template-columns:1fr}.form-group.full-width{grid-column:1}.checkboxes{flex-direction:column;gap:12px}.form-actions{flex-direction:column-reverse}.cancel-btn,.submit-btn{width:100%;justify-content:center}.admin-books-grid{grid-template-columns:1fr}}@media(max-width:480px){.library-admin-page{padding:70px 0}.library-admin-container{padding:0 15px}.upload-form-wrapper,.books-list-section{padding:20px}.admin-title{font-size:1.3rem}}.modal-backdrop,.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1100;padding:1rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #0003;animation:slideUp .3s cubic-bezier(.4,0,.2,1);color:var(--text-primary)}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-small{max-width:400px}.modal-medium{max-width:600px}.modal-large{max-width:800px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.modal-title{margin:0;font-size:1.25rem;font-weight:600;color:var(--text-primary)}.modal-close{background:none;border:none;font-size:1.5rem;color:var(--text-secondary);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s ease}.modal-close:hover{background:var(--background);color:var(--text-primary)}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border);background:var(--surface);border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}[data-theme=dark] .modal-content{background:var(--surface);color:var(--text-primary)}[data-theme=dark] .modal-header{border-bottom-color:var(--border);background:var(--surface)}[data-theme=dark] .modal-footer{border-top-color:var(--border);background:var(--surface)}@media(max-width:768px){.modal-backdrop,.modal-overlay{padding:.75rem;padding-top:70px;padding-bottom:80px;align-items:flex-start;overflow-y:auto}.modal-content{max-height:none;min-height:auto;margin:auto 0;width:100%;max-width:100%}.modal-header{padding:1rem 1.25rem;position:sticky;top:0;background:var(--surface);z-index:1;border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.modal-title{font-size:1.125rem}.modal-body{padding:1.25rem;overflow-y:visible}.modal-footer{position:sticky;bottom:0;background:var(--surface);padding:1rem 1.25rem;border-top:1px solid var(--border);margin:0;border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg);flex-direction:column;gap:.75rem}.modal-footer .btn{width:100%}}@media(min-width:769px)and (max-width:1024px){.modal-content{max-width:500px}}.rich-text-editor{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);overflow:hidden}.rte-toolbar{display:flex;flex-wrap:wrap;gap:var(--spacing-xs);padding:var(--spacing-sm);background:var(--surface);border-bottom:1px solid var(--border)}.rte-group{display:flex;gap:4px;padding-right:var(--spacing-xs);border-right:1px solid var(--border)}.rte-group:last-child{border-right:none}.rte-btn{padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);color:var(--text-primary);cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s;min-width:32px;display:flex;align-items:center;justify-content:center}.rte-btn:hover{background:var(--primary-blue);color:#fff;border-color:var(--primary-blue)}.rte-btn:active{transform:scale(.95)}.rte-select{padding:6px 8px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);color:var(--text-primary);cursor:pointer;font-size:.875rem;transition:all .2s}.rte-select:hover{border-color:var(--primary-blue)}.rte-select:focus{outline:none;border-color:var(--primary-blue);box-shadow:0 0 0 2px #2196f31a}.rte-color-btn{position:relative;padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--background);cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:32px;transition:all .2s}.rte-color-btn:hover{background:var(--primary-blue);color:#fff;border-color:var(--primary-blue)}.rte-color-btn span{font-weight:600;font-size:.875rem;color:var(--text-primary);pointer-events:none}.rte-color-btn:hover span{color:#fff}.rte-color-btn input[type=color]{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer}.rte-content{min-height:200px;max-height:400px;overflow-y:auto;padding:var(--spacing-md);font-size:1rem;line-height:1.6;color:var(--text-primary);outline:none}.rte-content:empty:before{content:attr(data-placeholder);color:var(--text-muted);pointer-events:none}.rte-content strong{font-weight:700}.rte-content em{font-style:italic}.rte-content u{text-decoration:underline}.rte-content ul,.rte-content ol{margin:.5em 0;padding-left:2em}.rte-content li{margin:.25em 0}.rte-content::-webkit-scrollbar{width:8px}.rte-content::-webkit-scrollbar-track{background:var(--surface);border-radius:4px}.rte-content::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.rte-content::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}[data-theme=dark] .rte-content{color:#fff!important;caret-color:#fff}[data-theme=dark] .rte-content:empty:before{color:#ffffff80}[data-theme=dark] .rte-select option{background-color:#1e1e1e;color:#fff}[data-theme=dark] .rte-color-btn span{color:var(--text-primary)}@media(max-width:640px){.rte-toolbar{gap:4px;padding:var(--spacing-xs)}.rte-group{gap:2px;padding-right:4px}.rte-btn{padding:4px 8px;min-width:28px;font-size:.8125rem}.rte-select{padding:4px 6px;font-size:.8125rem}.rte-content{min-height:150px;padding:var(--spacing-sm);font-size:.9375rem}}.chat-container{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:var(--spacing-md);min-height:300px;max-height:500px;overflow-y:auto}.messages-list{display:flex;flex-direction:column;gap:var(--spacing-md)}.message-bubble{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-lg);max-width:80%;word-wrap:break-word}.message-bubble-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;gap:var(--spacing-sm)}.message-sent{background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-hover) 100%);color:#fff;align-self:flex-end;margin-left:auto}.message-sent .message-bubble-header span{color:#ffffffe6}.message-received{background:var(--bg-primary);border:1px solid var(--border-color);color:var(--text-primary);align-self:flex-start;margin-right:auto}.message-received .message-bubble-header span{color:var(--text-secondary)}.empty-state-small{display:flex;align-items:center;justify-content:center;min-height:200px;padding:var(--spacing-lg);text-align:center}.form-group{margin-bottom:var(--spacing-md)}.form-label{display:block;font-size:.9375rem;font-weight:500;color:var(--text-primary);margin-bottom:var(--spacing-xs)}.form-input,.form-textarea,.form-select{width:100%;padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--border-color);border-radius:var(--radius-md);font-size:.9375rem;color:var(--text-primary);background:var(--bg-primary);transition:border-color .2s,box-shadow .2s;font-family:inherit}.form-input:focus,.form-textarea:focus,.form-select:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #1976d21a}.form-textarea{resize:vertical;min-height:100px;line-height:1.5}input[type=file]{padding:var(--spacing-xs);font-size:.875rem}input[type=file]::file-selector-button{padding:var(--spacing-xs) var(--spacing-sm);border:1px solid var(--border-color);border-radius:var(--radius);background:var(--bg-secondary);color:var(--text-primary);font-size:.875rem;cursor:pointer;margin-right:var(--spacing-sm);transition:background-color .2s}input[type=file]::file-selector-button:hover{background:var(--bg-primary)}.grading-form{background:var(--bg-primary);border-radius:var(--radius-lg);padding:var(--spacing-lg)}.grade-preview{background:var(--bg-secondary);padding:var(--spacing-md);border-radius:var(--radius-md);margin-bottom:var(--spacing-md);text-align:center}.grade-preview h4{font-size:1rem;margin-bottom:var(--spacing-sm);color:var(--text-secondary)}.grade-preview .grade-value{font-size:2rem;font-weight:700;color:var(--primary-color)}.status-indicator{display:inline-flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-full);font-size:.8125rem;font-weight:500}.status-not-submitted{background:#9e9e9e1a;color:var(--text-muted)}.status-submitted{background:#1976d21a;color:var(--primary-color)}.status-reviewed{background:#fb8c001a;color:#fb8c00}.status-graded{background:#4caf501a;color:var(--success-green)}.submission-card{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--radius-lg);padding:var(--spacing-md);transition:all .2s;cursor:pointer}.submission-card:hover{border-color:var(--primary-color);box-shadow:0 2px 8px #0000001a;transform:translateY(-2px)}.submission-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-sm)}.submission-student-name{font-size:1.125rem;font-weight:600;color:var(--text-primary)}.submission-meta{display:flex;gap:var(--spacing-md);font-size:.875rem;color:var(--text-secondary);flex-wrap:wrap}.assignment-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--spacing-md);margin-bottom:var(--spacing-lg)}.info-item{background:var(--bg-secondary);padding:var(--spacing-md);border-radius:var(--radius-md)}.info-item-label{font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.info-item-value{font-size:1.125rem;font-weight:600;color:var(--text-primary)}.feedback-card{background:linear-gradient(135deg,#1976d20d,#1976d205);border-left:4px solid var(--primary-color);padding:var(--spacing-md);border-radius:var(--radius-md)}.feedback-header{display:flex;align-items:center;gap:var(--spacing-xs);margin-bottom:var(--spacing-sm);font-weight:600;color:var(--primary-color)}.feedback-content{font-size:.9375rem;line-height:1.6;color:var(--text-primary);white-space:pre-wrap}.attachment-link{display:inline-flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-xs) var(--spacing-sm);background:#1976d21a;color:var(--primary-color);border-radius:var(--radius);font-size:.875rem;text-decoration:none;transition:background-color .2s}.attachment-link:hover{background:#1976d233}@media(max-width:768px){.chat-container{min-height:250px;max-height:400px;padding:var(--spacing-sm)}.message-bubble{max-width:90%;padding:var(--spacing-xs) var(--spacing-sm)}.message-bubble-header{flex-direction:column;align-items:flex-start;gap:2px}.assignment-info-grid{grid-template-columns:1fr}.submission-meta{flex-direction:column;gap:var(--spacing-xs)}}@media(max-width:480px){.form-input,.form-textarea,.form-select{font-size:16px}.grade-preview .grade-value{font-size:1.5rem}}.chat-container::-webkit-scrollbar{width:8px}.chat-container::-webkit-scrollbar-track{background:var(--bg-primary);border-radius:var(--radius)}.chat-container::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:var(--radius)}.chat-container::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.chat-loading{display:flex;align-items:center;justify-content:center;padding:var(--spacing-lg);color:var(--text-secondary)}.chat-loading:after{content:"...";animation:dots 1.5s steps(4,end) infinite}@keyframes dots{0%,20%{content:"."}40%{content:".."}60%,to{content:"..."}}.alert{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md);margin-bottom:var(--spacing-md);font-size:.875rem}.alert-success{background:#4caf501a;color:var(--success-green);border:1px solid rgba(76,175,80,.3)}.alert-error{background:#f443361a;color:var(--error-red);border:1px solid rgba(244,67,54,.3)}.alert-info{background:#1976d21a;color:var(--primary-color);border:1px solid rgba(25,118,210,.3)}.news-detail-card{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:var(--radius-lg);overflow:hidden;box-shadow:0 2px 8px #0000001a}.news-detail-image{width:100%;background:var(--bg-secondary);display:flex;align-items:center;justify-content:center;padding:var(--spacing-md)}.news-detail-image img{max-width:100%;height:auto;max-height:500px;object-fit:contain;display:block;border-radius:var(--radius-md)}.news-detail-content{padding:var(--spacing-xl)}.news-detail-title{font-size:2rem;font-weight:700;color:var(--text-primary);margin:0 0 var(--spacing-md) 0;line-height:1.3;word-break:break-word;overflow-wrap:break-word}.news-detail-meta{display:flex;align-items:center;gap:var(--spacing-md);padding-bottom:var(--spacing-lg);margin-bottom:var(--spacing-lg);border-bottom:1px solid var(--border-color)}.news-detail-date{font-size:.875rem;color:var(--text-secondary);font-weight:500}.news-detail-body{font-size:1rem;line-height:1.7;color:var(--text-primary);white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}@media(max-width:768px){.news-detail-image{padding:var(--spacing-sm)}.news-detail-image img{max-height:400px}.news-detail-content{padding:var(--spacing-lg)}.news-detail-title{font-size:1.5rem}.news-detail-body{font-size:.9375rem}}@media(max-width:480px){.news-detail-image{padding:var(--spacing-xs)}.news-detail-image img{max-height:300px}.news-detail-content{padding:var(--spacing-md)}.news-detail-title{font-size:1.25rem}.news-detail-meta{padding-bottom:var(--spacing-md);margin-bottom:var(--spacing-md)}.news-detail-date{font-size:.8125rem}.news-detail-body{font-size:.875rem}}@media(prefers-color-scheme:dark){.news-detail-card{box-shadow:0 2px 8px #0000004d}}.campaign-detail-card{background:var(--background);border-radius:var(--radius-lg);overflow:hidden;box-shadow:0 2px 8px #0000001a}.campaign-detail-image{width:100%;height:auto;max-height:400px;overflow:hidden;background:var(--gray-100)}.campaign-detail-image img{width:100%;height:100%;object-fit:cover;display:block}.campaign-detail-content{padding:var(--spacing-lg)}.campaign-detail-title{font-size:1.75rem;font-weight:700;color:var(--text-primary);margin:0 0 var(--spacing-md) 0;line-height:1.3}.campaign-detail-body{font-size:1rem;line-height:1.8;color:var(--text-primary);margin-bottom:var(--spacing-lg);white-space:pre-wrap;word-wrap:break-word}.campaign-link-section{padding-top:var(--spacing-md);border-top:1px solid var(--border)}.campaign-link-section .btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-xs);width:100%;max-width:300px;font-weight:600;transition:transform .2s ease}.campaign-link-section .btn:hover{transform:translateY(-2px)}@media(max-width:768px){.campaign-detail-title{font-size:1.5rem}.campaign-detail-content{padding:var(--spacing-md)}.campaign-detail-image{max-height:300px}.campaign-link-section .btn{max-width:100%}}@media(max-width:480px){.campaign-detail-title{font-size:1.25rem}.campaign-detail-body{font-size:.9375rem}.campaign-detail-image{max-height:250px}}
