@import"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap";@import"https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap";:root{--color-primary: #3b82f6;--color-primary-dark: #2563eb;--color-primary-light: #60a5fa;--color-secondary: #10b981;--color-secondary-dark: #059669;--color-secondary-light: #34d399;--color-accent: #8b5cf6;--color-accent-dark: #7c3aed;--color-accent-light: #a78bfa;--color-success: #10b981;--color-warning: #f59e0b;--color-error: #ef4444;--color-info: #3b82f6;--color-gray-50: #f9fafb;--color-gray-100: #f3f4f6;--color-gray-200: #e5e7eb;--color-gray-300: #d1d5db;--color-gray-400: #9ca3af;--color-gray-500: #6b7280;--color-gray-600: #4b5563;--color-gray-700: #374151;--color-gray-800: #1f2937;--color-gray-900: #111827;--color-white: #ffffff;--color-black: #000000;--font-family-primary: "Inter", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;--font-family-mono: "Fira Code", "Monaco", "Cascadia Code", "Roboto Mono", monospace;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-size-xl: 1.25rem;--font-size-2xl: 1.5rem;--font-size-3xl: 1.875rem;--font-size-4xl: 2.25rem;--font-size-5xl: 3rem;--font-size-6xl: 3.75rem;--font-weight-thin: 100;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800;--font-weight-black: 900;--line-height-tight: 1.25;--line-height-snug: 1.375;--line-height-normal: 1.5;--line-height-relaxed: 1.625;--line-height-loose: 2;--spacing-0: 0;--spacing-1: .25rem;--spacing-2: .5rem;--spacing-3: .75rem;--spacing-4: 1rem;--spacing-5: 1.25rem;--spacing-6: 1.5rem;--spacing-8: 2rem;--spacing-10: 2.5rem;--spacing-12: 3rem;--spacing-16: 4rem;--spacing-20: 5rem;--spacing-24: 6rem;--spacing-32: 8rem;--radius-none: 0;--radius-sm: .125rem;--radius-base: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--radius-3xl: 1.5rem;--radius-full: 9999px;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-base: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, .06);--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-base: .2s cubic-bezier(.4, 0, .2, 1);--transition-slow: .3s cubic-bezier(.4, 0, .2, 1);--z-dropdown: 1000;--z-sticky: 1020;--z-fixed: 1030;--z-modal-backdrop: 1040;--z-modal: 1050;--z-popover: 1060;--z-tooltip: 1070;--z-toast: 1080}@media (prefers-color-scheme: dark){:root{--color-gray-50: #111827;--color-gray-100: #1f2937;--color-gray-200: #374151;--color-gray-300: #4b5563;--color-gray-400: #6b7280;--color-gray-500: #9ca3af;--color-gray-600: #d1d5db;--color-gray-700: #e5e7eb;--color-gray-800: #f3f4f6;--color-gray-900: #f9fafb;--color-white: #000000;--color-black: #ffffff}}html{height:100%;width:100%;font-size:16px;line-height:var(--line-height-normal);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;direction:ltr}body{height:100vh;width:100vw;margin:0;padding:0;font-family:var(--font-family-primary);font-size:var(--font-size-base);font-weight:var(--font-weight-normal);line-height:var(--line-height-normal);color:var(--color-gray-900);background:var(--color-gray-50);overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left}h1,h2,h3,h4,h5,h6{margin:0;font-weight:var(--font-weight-bold);line-height:var(--line-height-tight);color:var(--color-gray-900)}h1{font-size:var(--font-size-4xl);font-weight:var(--font-weight-extrabold)}h2{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold)}h3{font-size:var(--font-size-2xl);font-weight:var(--font-weight-semibold)}h4{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold)}h5{font-size:var(--font-size-lg);font-weight:var(--font-weight-medium)}h6{font-size:var(--font-size-base);font-weight:var(--font-weight-medium)}p{margin:0;line-height:var(--line-height-relaxed);color:var(--color-gray-700)}a{color:var(--color-primary);text-decoration:none;transition:color var(--transition-fast)}a:hover{color:var(--color-primary-dark);text-decoration:underline}a:focus{outline:2px solid var(--color-primary);outline-offset:2px}ul,ol{margin:0;padding:0;list-style:none}img{max-width:100%;height:auto;display:block}input,textarea,select,button{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}input,textarea,select{background:var(--color-white);border:1px solid var(--color-gray-300);border-radius:var(--radius-md);padding:var(--spacing-3) var(--spacing-4);transition:all var(--transition-base)}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #3b82f61a}input:disabled,textarea:disabled,select:disabled{background:var(--color-gray-100);color:var(--color-gray-500);cursor:not-allowed;opacity:.7}button{cursor:pointer;border:none;outline:none;background:none;padding:0;margin:0;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;text-decoration:none;transition:all var(--transition-base);position:relative;overflow:hidden}button:disabled{cursor:not-allowed;opacity:.7}button:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--color-gray-100);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb{background:var(--color-gray-400);border-radius:var(--radius-full);transition:background var(--transition-fast)}::-webkit-scrollbar-thumb:hover{background:var(--color-gray-500)}::-webkit-scrollbar-corner{background:var(--color-gray-100)}::selection{background:#3b82f633;color:var(--color-gray-900)}::-moz-selection{background:#3b82f633;color:var(--color-gray-900)}:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-bold{font-weight:var(--font-weight-bold)}.font-semibold{font-weight:var(--font-weight-semibold)}.font-medium{font-weight:var(--font-weight-medium)}.font-normal{font-weight:var(--font-weight-normal)}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.w-full{width:100%}.h-full{height:100%}.min-h-screen{min-height:100vh}.min-w-screen{min-width:100vw}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}.inset-0{inset:0}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.animate-spin{animation:spin 1s linear infinite}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-bounce{animation:bounce 1s infinite}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:translateY(0);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@media (max-width: 768px){html{font-size:14px}h1{font-size:var(--font-size-3xl)}h2{font-size:var(--font-size-2xl)}h3{font-size:var(--font-size-xl)}}@media (max-width: 480px){html{font-size:13px}h1{font-size:var(--font-size-2xl)}h2{font-size:var(--font-size-xl)}h3{font-size:var(--font-size-lg)}}@media print{*{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}.user-management-overlay{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.user-management{background:var(--color-white);border-radius:var(--radius-2xl);box-shadow:var(--shadow-2xl);width:90vw;max-width:1400px;height:90vh;display:flex;flex-direction:column;overflow:hidden;position:relative}.user-management:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--color-primary),var(--color-secondary),var(--color-accent));z-index:1}.user-management-header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-6) var(--spacing-8);border-bottom:1px solid var(--color-gray-200);background:var(--color-gray-50);position:relative;z-index:2}.header-left{display:flex;align-items:center;gap:1rem}.header-left h2{margin:0;color:var(--color-gray-900);font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-icon{color:var(--color-primary);filter:drop-shadow(0 2px 4px rgba(99,102,241,.2))}.user-count{background:#dbeafe;color:#1e40af;padding:.25rem .75rem;border-radius:1rem;font-size:.875rem;font-weight:500}.add-user-button{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-4) var(--spacing-6);background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));color:var(--color-white);border:none;border-radius:var(--radius-xl);font-weight:var(--font-weight-semibold);cursor:pointer;transition:all var(--transition-base);box-shadow:var(--shadow-md);position:relative;overflow:hidden}.add-user-button:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary-light),var(--color-primary));opacity:0;transition:opacity var(--transition-base)}.add-user-button:hover:not(:disabled){background:linear-gradient(135deg,var(--color-primary-dark),var(--color-primary));transform:translateY(-2px);box-shadow:var(--shadow-lg)}.add-user-button:hover:not(:disabled):before{opacity:.2}.add-user-button:disabled{background:var(--color-gray-400);cursor:not-allowed;transform:none;box-shadow:var(--shadow-sm)}.close-button{padding:.5rem;background:#f3f4f6;border:none;border-radius:.5rem;cursor:pointer;transition:all .2s}.close-button:hover{background:#e5e7eb}.user-management-filters{display:flex;align-items:center;gap:1rem;padding:1rem 2rem;background:#fff;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}.filter-group{display:flex;align-items:center;gap:.5rem;position:relative}.filter-icon{color:#6b7280;size:16}.search-input{padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:.5rem;width:250px;font-size:.875rem}.search-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.filter-select{padding:.5rem;border:1px solid #d1d5db;border-radius:.5rem;background:#fff;font-size:.875rem;min-width:120px}.bulk-actions{position:relative}.bulk-actions-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#f3f4f6;border:1px solid #d1d5db;border-radius:.5rem;cursor:pointer;font-size:.875rem;transition:all .2s}.bulk-actions-button:hover{background:#e5e7eb}.bulk-actions-menu{position:absolute;top:100%;right:0;background:#fff;border:1px solid #d1d5db;border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a;z-index:10;min-width:150px}.bulk-actions-menu button{display:block;width:100%;padding:.75rem 1rem;text-align:left;border:none;background:#fff;cursor:pointer;font-size:.875rem;transition:background-color .2s}.bulk-actions-menu button:hover{background:#f3f4f6}.bulk-actions-menu button.danger{color:#dc2626}.bulk-actions-menu button.danger:hover{background:#fef2f2}.user-management-content{flex:1;overflow:hidden;display:flex;flex-direction:column}.loading{display:flex;justify-content:center;align-items:center;height:200px;color:#6b7280;font-size:1.125rem}.users-table{flex:1;overflow:auto;display:flex;flex-direction:column}.table-header{display:grid;grid-template-columns:40px 1fr 1fr 120px 120px 100px 120px 120px;gap:1rem;padding:1rem 2rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-weight:600;color:#374151;font-size:.875rem;position:sticky;top:0;z-index:1}.table-row{display:grid;grid-template-columns:40px 1fr 1fr 120px 120px 100px 120px 120px;gap:1rem;padding:1rem 2rem;border-bottom:1px solid #f1f5f9;align-items:center;transition:background-color .2s}.table-row:hover{background:#f8fafc}.table-cell{display:flex;align-items:center;font-size:.875rem}.table-cell.checkbox{justify-content:center}.user-info{display:flex;flex-direction:column;gap:.25rem}.user-name{font-weight:500;color:#1e293b}.user-position{font-size:.75rem;color:#6b7280}.role-badge{padding:.25rem .75rem;border-radius:1rem;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.05em}.role-badge.super-admin{background:#fef3c7;color:#92400e}.role-badge.admin{background:#dbeafe;color:#1e40af}.role-badge.user{background:#dcfce7;color:#166534}.role-badge.guest{background:#f3f4f6;color:#6b7280}.status-badge{padding:.25rem .75rem;border-radius:1rem;font-size:.75rem;font-weight:500}.status-badge.active{background:#dcfce7;color:#166534}.action-buttons{display:flex;gap:.5rem}.delete-button{display:flex;align-items:center;gap:4px;padding:6px 12px;background:#fee2e2;color:#991b1b;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s}.delete-button:hover{background:#fecaca}.action-button{padding:.5rem;border:none;border-radius:.375rem;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.action-button.edit{background:#f3f4f6;color:#374151}.action-button.edit:hover{background:#e5e7eb}.action-button.activate{background:#dcfce7;color:#166534}.action-button.activate:hover{background:#bbf7d0}.action-button.deactivate{background:#fee2e2;color:#991b1b}.action-button.deactivate:hover{background:#fecaca}.action-button.delete{background:#fef2f2;color:#dc2626}.action-button.delete:hover{background:#fee2e2}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:2000}.modal{background:#fff;border-radius:.75rem;box-shadow:0 20px 25px -5px #0000001a;width:90vw;max-width:600px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.modal-header h3{margin:0;color:#1e293b;font-size:1.25rem;font-weight:600}.modal-content{padding:2rem;overflow-y:auto;flex:1}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.form-group label{font-weight:500;color:#374151;font-size:.875rem}.form-group input,.form-group select,.form-group textarea{padding:.75rem;border:1px solid #d1d5db;border-radius:.5rem;font-size:.875rem;transition:all .2s}.disabled-input{background:#f9fafb;color:#6b7280;cursor:not-allowed}.form-group small{color:#6b7280;font-size:.75rem}.form-group label input[type=checkbox]{margin-right:.5rem}.modal-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:2rem;padding-top:1rem;border-top:1px solid #e2e8f0}.cancel-button{padding:.75rem 1.5rem;background:#f3f4f6;color:#374151;border:none;border-radius:.5rem;font-weight:500;cursor:pointer;transition:all .2s}.cancel-button:hover{background:#e5e7eb}.save-button{padding:.75rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:.5rem;font-weight:500;cursor:pointer;transition:all .2s}.save-button:hover{background:#2563eb}@media (max-width: 1024px){.user-management{width:95vw;max-width:1200px}.user-management-header,.user-management-filters{padding:var(--spacing-4) var(--spacing-6)}.table-header,.table-row{grid-template-columns:40px 1fr 1fr 120px 100px 100px 120px 100px;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-4)}}@media (max-width: 768px){.user-management{width:95vw;height:95vh}.user-management-header{flex-direction:column;gap:var(--spacing-4);padding:var(--spacing-4)}.header-left,.header-right{width:100%;justify-content:space-between}.user-management-filters{flex-direction:column;align-items:stretch;gap:var(--spacing-2);padding:var(--spacing-4)}.filter-group,.search-input{width:100%}.table-header,.table-row{grid-template-columns:40px 1fr 1fr 100px 80px 80px 100px 80px;gap:var(--spacing-1);padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-xs)}.form-row{grid-template-columns:1fr}.modal{width:95vw;margin:var(--spacing-4)}.modal-content{padding:var(--spacing-4)}}@media (max-width: 480px){.user-management{width:98vw;height:98vh;border-radius:var(--radius-lg)}.user-management-header,.user-management-filters{padding:var(--spacing-3)}.table-header,.table-row{grid-template-columns:30px 1fr 1fr 80px 60px 60px 80px 60px;gap:var(--spacing-1);padding:var(--spacing-2);font-size:var(--font-size-xs)}.modal{width:98vw;margin:var(--spacing-2)}.modal-content{padding:var(--spacing-3)}.add-user-button{padding:var(--spacing-3) var(--spacing-4);font-size:var(--font-size-sm)}}.database-settings-section{margin-top:auto;border-top:2px solid var(--color-gray-200);background:var(--color-gray-50)}.settings-header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-4) var(--spacing-6);cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none}.settings-header:hover{background:var(--color-gray-100)}.settings-title{display:flex;align-items:center;gap:var(--spacing-3);color:var(--color-gray-900)}.settings-title h3{margin:0;font-size:var(--font-size-lg);font-weight:600}.settings-header .chevron{transition:transform .3s ease;color:var(--color-gray-500)}.settings-header .chevron.expanded{transform:rotate(180deg)}.settings-content{padding:var(--spacing-6);animation:slideDown .3s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.danger-zone{background:linear-gradient(135deg,#fff5f5,#ffe8e8);border:2px solid #ff4444;border-radius:var(--radius-lg);padding:var(--spacing-6);box-shadow:0 4px 12px #ff44441a}.danger-zone-header{display:flex;align-items:center;gap:var(--spacing-2);color:#c00;margin-bottom:var(--spacing-4)}.danger-zone-header h4{margin:0;font-size:var(--font-size-xl);font-weight:700}.danger-warning{color:#a00;font-weight:600;margin:var(--spacing-3) 0;font-size:var(--font-size-md)}.danger-list{list-style:none;padding:0;margin:var(--spacing-4) 0}.danger-list li{padding:var(--spacing-2) var(--spacing-3);margin:var(--spacing-2) 0;background:#ffffffb3;border-radius:var(--radius-md);color:#f44;font-weight:500;border-left:4px solid #ff4444}.danger-info{color:#0a0;font-weight:500;margin:var(--spacing-4) 0;padding:var(--spacing-3);background:#c8ffc84d;border-radius:var(--radius-md);border-left:4px solid #00aa00}.reset-database-button{display:flex;align-items:center;justify-content:center;gap:var(--spacing-2);padding:var(--spacing-4) var(--spacing-6);background:linear-gradient(135deg,#f44,#c00);color:#fff;border:none;border-radius:var(--radius-lg);font-size:var(--font-size-md);font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #ff44444d;margin-top:var(--spacing-4);width:100%;text-transform:uppercase;letter-spacing:.5px}.reset-database-button:hover:not(:disabled){background:linear-gradient(135deg,red,#a00);transform:translateY(-2px);box-shadow:0 6px 16px #f446}.reset-database-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #ff44444d}.reset-database-button:disabled{opacity:.7;cursor:not-allowed;background:var(--color-gray-400)}.reset-database-button .spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal-container{background:var(--color-white);border-radius:var(--radius-2xl);width:100%;max-width:640px;max-height:90vh;overflow:hidden;box-shadow:var(--shadow-2xl);position:relative}.modal-container:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--color-primary),var(--color-secondary),var(--color-accent));z-index:1}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-6) var(--spacing-8);border-bottom:1px solid var(--color-gray-200);background:var(--color-gray-50);position:relative;z-index:2}.modal-header h2{display:flex;align-items:center;gap:var(--spacing-3);margin:0;font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);color:var(--color-gray-900);background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.modal-icon{color:var(--color-primary);width:24px;height:24px;filter:drop-shadow(0 2px 4px rgba(99,102,241,.2))}.modal-content{padding:1.5rem;overflow-y:auto;max-height:calc(90vh - 80px)}.error-message{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;font-size:.875rem;margin-bottom:1rem}.success-message{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;color:#166534;font-size:.875rem;margin-bottom:1rem}.machine-info{margin-bottom:1.5rem;padding:1rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.machine-info h3{margin:0 0 .5rem;font-size:1.125rem;font-weight:600;color:#1e293b}.machine-category{margin:0 0 .5rem;font-size:.875rem;color:#64748b;font-weight:500}.machine-description{margin:0;font-size:.875rem;color:#64748b;line-height:1.5}.reservation-form{display:flex;flex-direction:column;gap:1rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{display:flex;align-items:center;gap:.5rem;font-weight:500;color:#374151;font-size:.875rem}.form-group input,.form-group select,.form-group textarea{padding:.75rem;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;font-family:inherit;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-group textarea{resize:vertical;min-height:80px}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem;padding-top:1rem;border-top:1px solid #e2e8f0}.primary-button{display:flex;align-items:center;justify-content:center;gap:var(--spacing-2);padding:var(--spacing-4) var(--spacing-6);background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));color:var(--color-white);border:none;border-radius:var(--radius-xl);font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);cursor:pointer;transition:all var(--transition-base);box-shadow:var(--shadow-md);position:relative;overflow:hidden}.primary-button:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary-light),var(--color-primary));opacity:0;transition:opacity var(--transition-base)}.primary-button:hover:not(:disabled){background:linear-gradient(135deg,var(--color-primary-dark),var(--color-primary));transform:translateY(-2px);box-shadow:var(--shadow-lg)}.primary-button:hover:not(:disabled):before{opacity:.2}.primary-button:disabled{background:var(--color-gray-300);cursor:not-allowed;transform:none;box-shadow:var(--shadow-sm)}.secondary-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 1.5rem;background:#fff;color:#374151;border:1px solid #d1d5db;border-radius:8px;font-weight:500;font-size:.875rem;cursor:pointer;transition:all .2s}.secondary-button:hover{background:#f9fafb;border-color:#9ca3af}@media (max-width: 1024px){.modal-container{max-width:90vw}.modal-header,.modal-content{padding:var(--spacing-4) var(--spacing-6)}}@media (max-width: 768px){.modal-overlay{padding:var(--spacing-2)}.modal-container{max-height:95vh;max-width:95vw}.modal-header,.modal-content{padding:var(--spacing-4)}.form-row{grid-template-columns:1fr}.modal-actions{flex-direction:column;gap:var(--spacing-3)}.primary-button,.secondary-button{width:100%}}@media (max-width: 480px){.modal-overlay{padding:var(--spacing-1)}.modal-container{max-width:98vw;border-radius:var(--radius-lg)}.modal-header,.modal-content{padding:var(--spacing-3)}.modal-header h2{font-size:var(--font-size-lg)}.form-group input,.form-group select,.form-group textarea{font-size:var(--font-size-sm)}}.super-admin-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px}.super-admin-panel{background:#fff;border-radius:12px;width:100%;max-width:1400px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;overflow:hidden}.super-admin-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:2px solid #e5e7eb;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.header-left{display:flex;align-items:center;gap:12px}.header-icon{width:24px;height:24px}.super-admin-header h2{margin:0;font-size:24px;font-weight:600}.close-button{background:#fff3;border:none;color:#fff;width:36px;height:36px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.close-button:hover{background:#ffffff4d}.super-admin-tabs{display:flex;gap:8px;padding:16px 24px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.tab-button{display:flex;align-items:center;gap:8px;padding:10px 20px;border:none;background:transparent;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;color:#6b7280;transition:all .2s}.tab-button:hover{background:#e5e7eb;color:#374151}.tab-button.active{background:#667eea;color:#fff}.super-admin-content{flex:1;overflow-y:auto;padding:24px}.tab-content{display:flex;flex-direction:column;gap:20px}.tab-header{display:flex;justify-content:space-between;align-items:center}.tab-header h3{margin:0;font-size:20px;font-weight:600;color:#111827}.add-button{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .2s}.add-button:hover{background:#5568d3}.table-container{overflow-x:auto;border:1px solid #e5e7eb;border-radius:8px}.data-table{width:100%;border-collapse:collapse;background:#fff}.data-table thead{background:#f9fafb}.data-table th{padding:12px 16px;text-align:right;font-weight:600;font-size:14px;color:#374151;border-bottom:2px solid #e5e7eb}.data-table td{padding:12px 16px;text-align:right;font-size:14px;color:#6b7280;border-bottom:1px solid #e5e7eb}.data-table tbody tr:hover{background:#f9fafb}.status-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.active{background:#d1fae5;color:#065f46}.status-badge.inactive{background:#fee2e2;color:#991b1b}.action-buttons{display:flex;gap:8px}.edit-button,.delete-button{display:flex;align-items:center;gap:4px;padding:6px 12px;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;transition:all .2s}.edit-button{background:#dbeafe;color:#1e40af}.edit-button:hover{background:#bfdbfe}.delete-button{background:#fee2e2;color:#991b1b}.delete-button:hover:not(:disabled){background:#fecaca}.delete-button:disabled{opacity:.5;cursor:not-allowed;background:#f3f4f6;color:#9ca3af}.modal-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10001;padding:20px;animation:overlayFadeIn .2s ease-out}@keyframes overlayFadeIn{0%{opacity:0}to{opacity:1}}.modal{background:#fff;border-radius:16px;width:100%;max-width:650px;max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px -12px #00000040;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}.modal-header h3{margin:0;font-size:20px;font-weight:600;color:#111827}.modal-content{padding:28px;background:#fff}.form-group{margin-bottom:24px}.form-group label{display:block;margin-bottom:10px;font-size:14px;font-weight:600;color:#1f2937;letter-spacing:.01em}.form-group input,.form-group textarea,.form-group select{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:10px;font-size:14px;transition:all .2s;background:#fff;color:#111827;font-family:inherit}.form-group textarea{resize:vertical;min-height:80px;line-height:1.5}.form-group input::placeholder,.form-group textarea::placeholder{color:#9ca3af}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 4px #667eea1a,0 2px 4px #0000000d;background:#fafafa}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-group label input[type=checkbox]{width:18px;height:18px;margin-right:10px;cursor:pointer;accent-color:#667eea;flex-shrink:0}.form-group label:has(input[type=checkbox]){display:flex;align-items:center;cursor:pointer;font-weight:500;color:#374151;margin-bottom:0;padding:8px 12px;background:#f9fafb;border-radius:8px;transition:background .2s}.form-group label:has(input[type=checkbox]):hover{background:#f3f4f6}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:32px;padding-top:24px;border-top:2px solid #f3f4f6}.cancel-button,.save-button{padding:12px 24px;border:none;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;transition:all .2s;min-width:100px;box-shadow:0 2px 4px #0000000d}.cancel-button{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb}.cancel-button:hover{background:#e5e7eb;transform:translateY(-1px);box-shadow:0 4px 6px #0000001a}.save-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none}.save-button:hover:not(:disabled){background:linear-gradient(135deg,#5568d3,#6a3d91);transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.save-button:disabled{opacity:.5;cursor:not-allowed}.loading{text-align:center;padding:40px;color:#6b7280;font-size:16px}.info-message{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#dbeafe;color:#1e40af;border-radius:8px;font-size:14px}.calendar-container{display:flex;flex-direction:column;height:100vh;background:var(--color-gray-50);font-family:var(--font-family-primary);position:relative;overflow:hidden}.calendar-header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-6) var(--spacing-8);background:var(--color-white);border-bottom:1px solid var(--color-gray-200);box-shadow:var(--shadow-sm);position:relative;z-index:2}.header-left{display:flex;align-items:center;gap:1.5rem}.header-left h1{display:flex;align-items:center;gap:var(--spacing-3);margin:0;font-size:var(--font-size-2xl);font-weight:var(--font-weight-bold);color:var(--color-gray-900);background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.date-selectors-container{display:flex;align-items:center;gap:var(--spacing-3)}.month-selector-container,.year-selector-container{position:relative;display:flex;align-items:center}.month-selector-button,.year-selector-button{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-5);border:1px solid var(--color-gray-300);background:var(--color-white);border-radius:var(--radius-lg);color:var(--color-gray-700);cursor:pointer;transition:all var(--transition-base);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);box-shadow:var(--shadow-sm);justify-content:space-between}.month-selector-button{min-width:150px}.year-selector-button{min-width:100px}.month-selector-button:hover,.year-selector-button:hover{background:var(--color-gray-50);border-color:var(--color-primary);color:var(--color-primary);transform:translateY(-1px);box-shadow:var(--shadow-md)}.chevron{transition:transform var(--transition-base)}.chevron.rotated{transform:rotate(90deg)}.month-selector-dropdown,.year-selector-dropdown{position:absolute;top:100%;left:0;right:0;background:var(--color-white);border:1px solid var(--color-gray-300);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:1000;max-height:300px;overflow-y:auto;margin-top:var(--spacing-1)}.month-option,.year-option{display:block;width:100%;padding:var(--spacing-3) var(--spacing-4);border:none;background:transparent;color:var(--color-gray-700);cursor:pointer;transition:all var(--transition-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);text-align:left}.month-option:hover,.year-option:hover{background:var(--color-gray-50);color:var(--color-primary)}.month-option.selected,.year-option.selected{background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));color:var(--color-white);font-weight:var(--font-weight-semibold)}.header-right{display:flex;align-items:center;gap:1rem}.calendar-actions{display:flex;gap:.5rem}.filter-button,.admin-button,.logout-button,.ai-toggle-button{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-5);border:1px solid var(--color-gray-300);background:var(--color-white);border-radius:var(--radius-lg);color:var(--color-gray-700);cursor:pointer;transition:all var(--transition-base);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.filter-button:before,.admin-button:before,.logout-button:before,.ai-toggle-button:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));opacity:0;transition:opacity var(--transition-base)}.filter-button:hover,.admin-button:hover,.logout-button:hover,.ai-toggle-button:hover{background:var(--color-gray-50);border-color:var(--color-primary);color:var(--color-primary);transform:translateY(-1px);box-shadow:var(--shadow-md)}.filter-button:hover:before,.admin-button:hover:before,.logout-button:hover:before,.ai-toggle-button:hover:before{opacity:.05}.logout-button{color:var(--color-error);border-color:#fecaca;background:#fef2f2}.logout-button:hover{background:#fee2e2;border-color:#fca5a5;color:var(--color-error)}.ai-toggle-button{background:linear-gradient(135deg,var(--color-secondary),var(--color-secondary-light));color:var(--color-white);border-color:var(--color-secondary)}.ai-toggle-button:hover{background:linear-gradient(135deg,var(--color-secondary-dark),var(--color-secondary));border-color:var(--color-secondary-dark);color:var(--color-white)}.ai-toggle-button.active{background:linear-gradient(135deg,var(--color-primary),var(--color-primary-light));border-color:var(--color-primary);color:var(--color-white);box-shadow:var(--shadow-lg)}.ai-toggle-button.active:hover{background:linear-gradient(135deg,var(--color-primary-dark),var(--color-primary));border-color:var(--color-primary-dark)}.calendar-filters{padding:1rem 1.5rem;background:#fff;border-bottom:1px solid #e2e8f0}.filter-group{display:flex;align-items:center;gap:.75rem}.filter-group label{font-weight:500;color:#374151;font-size:.875rem}.filter-group select{padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:.875rem;cursor:pointer}.thirty-days-header{background:var(--color-white);border-bottom:1px solid var(--color-gray-200);padding:var(--spacing-4) var(--spacing-6);overflow-x:auto;box-shadow:var(--shadow-sm)}.days-container{display:flex;gap:var(--spacing-2);min-width:max-content;padding-bottom:var(--spacing-2)}.day-header-item{display:flex;flex-direction:column;align-items:center;min-width:60px;padding:var(--spacing-3);border:1px solid var(--color-gray-200);border-radius:var(--radius-lg);cursor:pointer;transition:all var(--transition-base);background:var(--color-white);position:relative;overflow:hidden}.day-header-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));opacity:0;transition:opacity var(--transition-base)}.day-header-item:hover{background:var(--color-gray-50);border-color:var(--color-primary);transform:translateY(-2px);box-shadow:var(--shadow-md)}.day-header-item:hover:before{opacity:.05}.day-header-item.today{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border-color:var(--color-primary);box-shadow:var(--shadow-md)}.day-header-item.today:before{opacity:.1}.day-header-item.other-month{background:var(--color-gray-50);color:var(--color-gray-400);opacity:.6}.day-header-number{font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);color:var(--color-gray-900);margin-bottom:var(--spacing-1);position:relative;z-index:1}.day-header-name{font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);color:var(--color-gray-600);text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--spacing-2);position:relative;z-index:1}.day-header-events{display:flex;flex-direction:column;gap:var(--spacing-1);width:100%;position:relative;z-index:1}.event-indicator{width:100%;height:6px;border-radius:var(--radius-full);cursor:pointer;transition:all var(--transition-base);box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.event-indicator:hover{opacity:.9;transform:scaleY(1.3);box-shadow:var(--shadow-md)}.event-indicator:after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transition:left .5s}.event-indicator:hover:after{left:100%}.event-indicator.booking{background:linear-gradient(135deg,var(--color-primary),var(--color-primary-light))}.event-indicator.maintenance{background:linear-gradient(135deg,var(--color-accent),var(--color-accent-light))}.event-indicator.holiday{background:linear-gradient(135deg,var(--color-secondary),var(--color-secondary-light))}.event-indicator.training{background:linear-gradient(135deg,#8b5cf6,#a78bfa)}.event-indicator.meeting{background:linear-gradient(135deg,var(--color-error),#f87171)}.event-indicator.other{background:linear-gradient(135deg,var(--color-gray-500),var(--color-gray-400))}.event-indicator.past-event{opacity:.6;filter:grayscale(.3)}.event-indicator.past-event:hover{opacity:.8;filter:grayscale(.1)}.more-events-indicator{font-size:var(--font-size-xs);color:var(--color-gray-500);text-align:center;font-weight:var(--font-weight-medium)}.calendar-content-with-sidebar{display:flex;flex:1;overflow:hidden}.machine-sidebar{width:320px;background:var(--color-white);border-right:1px solid var(--color-gray-200);padding:var(--spacing-6);overflow-y:auto;position:relative}.machine-sidebar:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#6366f105,#10b98105);pointer-events:none}.sidebar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.sidebar-header h3{margin:0;font-size:1.125rem;font-weight:600;color:#1e293b}.add-booking-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:#3b82f6;color:#fff;border-radius:6px;cursor:pointer;transition:all .2s}.add-booking-button:hover{background:#2563eb;transform:translateY(-1px)}.machine-list{display:flex;flex-direction:column;gap:.5rem}.machine-item{padding:var(--spacing-4);border:1px solid var(--color-gray-200);border-radius:var(--radius-xl);cursor:pointer;transition:all var(--transition-base);display:flex;justify-content:space-between;align-items:center;gap:var(--spacing-3);background:var(--color-white);box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.machine-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));opacity:0;transition:opacity var(--transition-base)}.machine-item:hover{background:var(--color-gray-50);border-color:var(--color-primary);transform:translateY(-2px);box-shadow:var(--shadow-lg)}.machine-item:hover:before{opacity:.05}.machine-item.selected{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border-color:var(--color-primary);box-shadow:var(--shadow-md)}.machine-item.selected:before{opacity:.1}.machine-content{flex:1;min-width:0}.machine-name{font-weight:500;color:#1e293b;margin-bottom:.25rem}.machine-category{font-size:.75rem;color:#64748b;margin-bottom:.5rem}.machine-status{font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:4px;display:inline-block}.machine-status.active{background:#dcfce7;color:#166534}.machine-status.inactive{background:#fef2f2;color:#dc2626}.reserve-button{padding:var(--spacing-2) var(--spacing-4);background:linear-gradient(135deg,var(--color-secondary),var(--color-secondary-dark));color:var(--color-white);border:none;border-radius:var(--radius-lg);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);cursor:pointer;transition:all var(--transition-base);white-space:nowrap;box-shadow:var(--shadow-sm);position:relative;z-index:1}.reserve-button:hover{background:linear-gradient(135deg,var(--color-secondary-dark),var(--color-secondary));transform:translateY(-1px);box-shadow:var(--shadow-md)}.calendar-main{flex:1;padding:1rem;overflow:auto}.loading{display:flex;align-items:center;justify-content:center;height:200px;color:#64748b;font-size:1rem}.month-view{display:flex;flex-direction:column;height:100%}.day-names-header{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:#e2e8f0;border:1px solid #e2e8f0;border-radius:8px 8px 0 0}.day-name-header{padding:.75rem;background:#f8fafc;text-align:center;font-weight:600;color:#64748b;font-size:.875rem}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--color-gray-200);border:1px solid var(--color-gray-200);border-top:none;border-radius:0 0 var(--radius-xl) var(--radius-xl);flex:1;overflow:hidden}.month-day{background:var(--color-white);min-height:140px;padding:var(--spacing-3);cursor:pointer;transition:all var(--transition-base);display:flex;flex-direction:column;position:relative;overflow:hidden}.month-day:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));opacity:0;transition:opacity var(--transition-base)}.month-day:hover{background:var(--color-gray-50);transform:scale(1.02);z-index:1;box-shadow:var(--shadow-lg)}.month-day:hover:before{opacity:.05}.month-day.today{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border:2px solid var(--color-primary);box-shadow:var(--shadow-md)}.month-day.today:before{opacity:.1}.month-day.other-month{background:var(--color-gray-50);color:var(--color-gray-400);opacity:.6}.day-number{font-weight:var(--font-weight-semibold);color:var(--color-gray-900);margin-bottom:var(--spacing-2);font-size:var(--font-size-sm);position:relative;z-index:1}.day-events{flex:1;display:flex;flex-direction:column;gap:.25rem}.event-dot{width:100%;height:8px;border-radius:var(--radius-full);cursor:pointer;transition:all var(--transition-base);position:relative;z-index:1;box-shadow:var(--shadow-sm);overflow:hidden}.event-dot:hover{opacity:.9;transform:scaleY(1.4);box-shadow:var(--shadow-md)}.event-dot:after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transition:left .5s}.event-dot:hover:after{left:100%}.event-dot.booking{background:linear-gradient(135deg,var(--color-primary),var(--color-primary-light))}.event-dot.maintenance{background:linear-gradient(135deg,var(--color-accent),var(--color-accent-light))}.event-dot.holiday{background:linear-gradient(135deg,var(--color-secondary),var(--color-secondary-light))}.event-dot.training{background:linear-gradient(135deg,#8b5cf6,#a78bfa)}.event-dot.meeting{background:linear-gradient(135deg,var(--color-error),#f87171)}.event-dot.other{background:linear-gradient(135deg,var(--color-gray-500),var(--color-gray-400))}.event-dot.past-event{opacity:.6;filter:grayscale(.3)}.event-dot.past-event:hover{opacity:.8;filter:grayscale(.1)}.more-events{font-size:.75rem;color:#64748b;text-align:center;padding:.25rem}.day-details-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.day-details-modal{background:#fff;border-radius:12px;width:90%;max-width:600px;max-height:80vh;overflow:hidden;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.day-details-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e2e8f0}.day-details-header h2{display:flex;align-items:center;gap:.5rem;margin:0;font-size:1.25rem;font-weight:600;color:#1e293b}.modal-icon{color:#3b82f6;width:20px;height:20px}.close-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:#f1f5f9;border-radius:6px;color:#64748b;cursor:pointer;transition:all .2s}.close-button:hover{background:#e2e8f0;color:#374151}.day-details-content{padding:1.5rem;overflow-y:auto;max-height:60vh}.date-info h3{margin:0 0 1rem;font-size:1.125rem;font-weight:600;color:#1e293b}.events-timeline h4{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#374151}.timeline{display:flex;flex-direction:column;gap:1rem}.timeline-item{display:flex;gap:.75rem}.timeline-marker{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.marker{width:12px;height:12px;border-radius:50%}.marker.booking{background:#3b82f6}.marker.maintenance{background:#f59e0b}.marker.holiday{background:#10b981}.marker.training{background:#8b5cf6}.marker.meeting{background:#ef4444}.marker.other{background:#6b7280}.timeline-content{flex:1}.event-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.event-header h5{margin:0;font-size:1rem;font-weight:600;color:#1e293b}.event-header h5.past-booking{color:#6b7280;opacity:.8}.past-indicator{font-size:.75rem;font-weight:500;color:#ef4444;margin-left:.25rem}.event-badges{display:flex;gap:.5rem;align-items:center}.event-type{font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:4px;text-transform:uppercase;letter-spacing:.05em}.event-type.booking{background:#dbeafe;color:#1e40af}.event-type.maintenance{background:#fef3c7;color:#92400e}.event-type.holiday{background:#d1fae5;color:#065f46}.event-type.training{background:#ede9fe;color:#5b21b6}.event-type.meeting{background:#fee2e2;color:#991b1b}.event-type.other{background:#f3f4f6;color:#374151}.event-details{display:flex;flex-direction:column;gap:.5rem}.detail-row{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:#64748b}.event-description{margin-top:.5rem}.event-description p{margin:0;font-size:.875rem;color:#64748b;line-height:1.5}.event-actions{display:flex;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid #e2e8f0}.edit-booking-btn,.delete-booking-btn{display:flex;align-items:center;gap:.25rem;padding:.375rem .75rem;border:none;border-radius:6px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s}.edit-booking-btn{background:#dbeafe;color:#1e40af}.edit-booking-btn:hover{background:#bfdbfe;color:#1e3a8a}.delete-booking-btn{background:#fee2e2;color:#991b1b}.delete-booking-btn:hover{background:#fecaca;color:#7f1d1d}.no-events{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;color:#9ca3af;text-align:center}.no-events svg{margin-bottom:1rem;opacity:.5}.no-events p{margin:0;font-size:1rem;font-weight:500}@media (max-width: 1024px){.calendar-header{padding:var(--spacing-4) var(--spacing-6)}.machine-sidebar{width:280px}.month-day{min-height:120px}.day-header-item{min-width:50px;padding:var(--spacing-2)}.day-header-number{font-size:var(--font-size-base)}}@media (max-width: 768px){.calendar-header{flex-direction:column;gap:var(--spacing-4);align-items:stretch;padding:var(--spacing-4)}.header-left,.header-right{justify-content:center}.calendar-content-with-sidebar{flex-direction:column}.machine-sidebar{width:100%;max-height:200px;padding:var(--spacing-4)}.month-day{min-height:100px;padding:var(--spacing-2)}.day-details-modal{width:95%;margin:var(--spacing-4)}.date-selectors-container{flex-direction:column;gap:var(--spacing-2)}.month-selector-button,.year-selector-button{min-width:120px;font-size:var(--font-size-base)}.thirty-days-header{padding:var(--spacing-3) var(--spacing-4)}.day-header-item{min-width:45px;padding:var(--spacing-2)}.day-header-number{font-size:var(--font-size-sm)}.day-header-name{font-size:10px}}@media (max-width: 480px){.calendar-header{padding:var(--spacing-3)}.header-left h1{font-size:var(--font-size-xl)}.machine-sidebar{padding:var(--spacing-3)}.month-day{min-height:80px;padding:var(--spacing-1)}.day-number{font-size:var(--font-size-xs)}.event-dot{height:4px}.day-details-modal{width:98%;margin:var(--spacing-2)}.thirty-days-header{padding:var(--spacing-2) var(--spacing-3)}.day-header-item{min-width:40px;padding:var(--spacing-1)}.day-header-number{font-size:var(--font-size-xs)}.day-header-name{font-size:9px}.event-indicator{height:3px}.date-selectors-container{flex-direction:column;gap:var(--spacing-1)}.month-selector-button,.year-selector-button{min-width:100px;font-size:var(--font-size-sm);padding:var(--spacing-2) var(--spacing-3)}}.event-actions{display:flex;gap:var(--spacing-2);margin-top:var(--spacing-3);padding-top:var(--spacing-3);border-top:1px solid var(--color-gray-200)}.edit-booking-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-3);background:var(--color-blue-100);color:var(--color-blue-700);border:1px solid var(--color-blue-200);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all .2s ease;text-decoration:none}.edit-booking-btn:hover{background:var(--color-blue-200);color:var(--color-blue-800);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.edit-booking-btn:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.edit-booking-btn svg{width:16px;height:16px}.cancel-booking-btn{display:inline-flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-3);background:var(--color-red-100);color:var(--color-red-700);border:1px solid var(--color-red-200);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all .2s ease;text-decoration:none;margin-left:var(--spacing-2)}.cancel-booking-btn:hover{background:var(--color-red-200);color:var(--color-red-800);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.cancel-booking-btn:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.cancel-booking-btn svg{width:16px;height:16px}.day-actions{padding:var(--spacing-4);border-top:1px solid var(--color-gray-200);background:var(--color-gray-50);display:flex;flex-direction:column;gap:var(--spacing-2)}.cancel-booking-btn-large{display:flex;align-items:center;justify-content:center;gap:var(--spacing-2);padding:var(--spacing-3) var(--spacing-4);background:var(--color-red-100);color:var(--color-red-700);border:1px solid var(--color-red-200);border-radius:var(--border-radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all .2s ease;text-decoration:none;width:100%}.cancel-booking-btn-large:hover{background:var(--color-red-200);color:var(--color-red-800);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.cancel-booking-btn-large:active{transform:translateY(0);box-shadow:var(--shadow-sm)}.cancel-booking-btn-large svg{width:18px;height:18px}.day-actions h4{margin:0 0 var(--spacing-3) 0;font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--color-gray-900)}.booking-action-item{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-3);background:var(--color-white);border:1px solid var(--color-gray-200);border-radius:var(--border-radius-md);margin-bottom:var(--spacing-2)}.booking-info{display:flex;flex-direction:column;gap:var(--spacing-1);flex:1}.booking-title{font-weight:var(--font-weight-medium);color:var(--color-gray-900);font-size:var(--font-size-sm)}.booking-time{font-size:var(--font-size-xs);color:var(--color-gray-600)}.no-actions{text-align:center;color:var(--color-gray-500);font-style:italic;margin:var(--spacing-4) 0}.event-actions{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb}.edit-booking-button,.delete-booking-button{display:flex;align-items:center;gap:6px;padding:6px 12px;border:none;border-radius:6px;font-size:.75rem;font-weight:500;cursor:pointer;transition:all .2s}.edit-booking-button{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}.edit-booking-button:hover{background:#e5e7eb;border-color:#9ca3af}.delete-booking-button{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.delete-booking-button:hover{background:#fee2e2;border-color:#fca5a5}.delete-confirm-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.delete-confirm-modal{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;direction:ltr}.delete-confirm-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-radius:12px 12px 0 0}.delete-confirm-header h2{margin:0;font-size:1.25rem;font-weight:600;display:flex;align-items:center;gap:8px}.delete-confirm-content{padding:24px}.booking-info h3{margin:0 0 16px;font-size:1.125rem;font-weight:600;color:#374151}.booking-details{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:16px;margin-bottom:20px}.booking-details p{margin:0 0 8px;font-size:.875rem;color:#374151}.booking-details p:last-child{margin-bottom:0}.form-group{margin-bottom:20px}.form-group label{display:block;font-size:.875rem;font-weight:500;color:#374151;margin-bottom:6px}.form-group textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;resize:vertical;min-height:80px;font-family:inherit}.form-group textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-actions{display:flex;gap:12px;justify-content:flex-end;padding-top:20px;border-top:1px solid #e5e7eb}.cancel-button{padding:10px 20px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.cancel-button:hover{background:#f9fafb;border-color:#9ca3af}.delete-button{padding:10px 20px;border:none;border-radius:8px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:8px}.delete-button:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.login-container{min-height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem;position:relative;overflow:hidden;font-family:Vazirmatn,Inter,Segoe UI,sans-serif}.login-container:before{content:"";position:absolute;inset:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');animation:float 20s ease-in-out infinite}.login-card{background:#fff;border-radius:2rem;box-shadow:0 25px 50px -12px #00000040;width:100%;max-width:1400px;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;min-height:800px;position:relative;animation:fadeInUp .8s cubic-bezier(.4,0,.2,1);border:1px solid rgba(255,255,255,.2)}@keyframes fadeInUp{0%{opacity:0;transform:translateY(40px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.login-header{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;padding:4rem 3rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative;overflow:hidden}.login-header:before{content:"";position:absolute;inset:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');animation:gridMove 30s linear infinite}@keyframes gridMove{0%{transform:translate(0)}to{transform:translate(10px,10px)}}.logo{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem;position:relative;z-index:1}.logo-icon{width:4rem;height:4rem;background:#fff3;border-radius:1rem;padding:.75rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3)}.logo h1{margin:0;font-size:2.5rem;font-weight:800;letter-spacing:-.025em;text-shadow:0 2px 4px rgba(0,0,0,.1)}.login-subtitle{margin:0;font-size:1.25rem;opacity:.9;font-weight:400;line-height:1.6;position:relative;z-index:1;max-width:400px}.login-form{padding:4rem 3rem;display:flex;flex-direction:column;justify-content:center;background:#fff;position:relative}.login-form:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#3b82f605,#10b98105);pointer-events:none}.form-group{margin-bottom:2rem;position:relative}.form-group label{display:block;margin-bottom:.75rem;font-weight:600;color:#374151;font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.form-group input{width:100%;padding:1rem 1.25rem;border:2px solid #e5e7eb;border-radius:1rem;font-size:1rem;transition:all .3s cubic-bezier(.4,0,.2,1);box-sizing:border-box;background:#f9fafb;font-weight:500}.form-group input:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 4px #3b82f61a;transform:translateY(-2px)}.form-group input:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed;opacity:.7}.form-group input::placeholder{color:#9ca3af;font-weight:400}.password-input{position:relative}.password-toggle{position:absolute;right:1rem;top:50%;transform:translateY(-50%);background:none;border:none;color:#6b7280;cursor:pointer;padding:.5rem;border-radius:.5rem;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.password-toggle:hover{color:#374151;background:#f3f4f6;transform:translateY(-50%) scale(1.1)}.password-toggle:disabled{cursor:not-allowed;opacity:.5}.error-message{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:#dc2626;padding:1rem 1.25rem;border-radius:1rem;margin-bottom:1.5rem;font-size:.875rem;font-weight:600;border:2px solid #fecaca;animation:shake .5s ease-in-out}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.login-button{width:100%;padding:1rem 1.5rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:1rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;justify-content:center;gap:.75rem;position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 4px 15px #3b82f64d}.login-button:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-2px);box-shadow:0 8px 25px #3b82f666}.login-button:active:not(:disabled){transform:translateY(0);box-shadow:0 4px 15px #3b82f64d}.login-button:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.auto-login-button{width:100%;padding:1rem 1.5rem;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:1rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);margin-top:1rem;display:flex;align-items:center;justify-content:center;gap:.75rem;position:relative;overflow:hidden;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 4px 15px #10b9814d}.auto-login-button:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 8px 25px #10b98166}.auto-login-button:active:not(:disabled){transform:translateY(0);box-shadow:0 4px 15px #10b9814d}.auto-login-button:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none;opacity:.7}.loading-spinner-small{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.login-features{background:linear-gradient(135deg,#f8fafc,#e2e8f0);padding:3rem;border-top:1px solid #e2e8f0;position:relative}.login-features:before{content:"";position:absolute;inset:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,6 18,14 10,18 2,14 2,6" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');opacity:.3;pointer-events:none}.login-features h3{margin:0 0 2rem;color:#1e293b;font-size:1.5rem;font-weight:800;text-align:center;position:relative;z-index:1}.features-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;position:relative;z-index:1}.feature-item{display:flex;gap:1rem;padding:1.5rem;background:#fff;border-radius:1rem;border:2px solid #e2e8f0;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.feature-item:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#3b82f60d,#10b9810d);opacity:0;transition:opacity .3s ease}.feature-item:hover{border-color:#cbd5e1;box-shadow:0 8px 25px #0000001a;transform:translateY(-4px)}.feature-item:hover:before{opacity:1}.feature-icon{color:#3b82f6;flex-shrink:0;margin-top:.25rem;width:2rem;height:2rem;position:relative;z-index:1}.feature-content{position:relative;z-index:1}.feature-content h4{margin:0 0 .5rem;color:#1e293b;font-size:1rem;font-weight:700}.feature-content p{margin:0;color:#64748b;font-size:.875rem;line-height:1.6;font-weight:500}.login-footer{background:linear-gradient(135deg,#1e293b,#0f172a);color:#fff;padding:2rem 3rem;text-align:center;font-size:.875rem;position:relative;overflow:hidden}.login-footer:before{content:"";position:absolute;inset:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');animation:twinkle 10s ease-in-out infinite}@keyframes twinkle{0%,to{opacity:.1}50%{opacity:.3}}.login-footer p{margin:.5rem 0;position:relative;z-index:1;font-weight:500}.login-footer strong{color:#fbbf24;font-weight:700}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;position:relative;overflow:hidden}.loading-spinner{width:4rem;height:4rem;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:2rem;position:relative;z-index:1}.loading-screen p{font-size:1.25rem;font-weight:600;margin:0;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.1)}@media (min-width: 1920px){.login-container{padding:3rem}.login-card{max-width:1600px;min-height:900px}.login-header,.login-form{padding:5rem 4rem}.logo h1{font-size:3rem}.login-subtitle{font-size:1.5rem}.features-grid{grid-template-columns:repeat(3,1fr)}}@media (min-width: 1200px) and (max-width: 1919px){.login-container{padding:2.5rem}.login-card{max-width:1400px;min-height:800px}.login-header,.login-form{padding:4rem 3rem}.logo h1{font-size:2.5rem}.login-subtitle{font-size:1.25rem}}@media (min-width: 992px) and (max-width: 1199px){.login-container{padding:2rem}.login-card{max-width:1200px;min-height:750px}.login-header,.login-form{padding:3.5rem 2.5rem}.logo h1{font-size:2.25rem}}@media (min-width: 768px) and (max-width: 991px){.login-container{padding:1.5rem}.login-card{grid-template-columns:1fr;max-width:700px;min-height:auto}.login-header{padding:3rem 2rem}.logo h1{font-size:2rem}.login-subtitle{font-size:1.125rem}.login-form{padding:3rem 2rem}.login-features{padding:2.5rem}.features-grid{grid-template-columns:repeat(2,1fr)}.login-footer{padding:2rem}}@media (max-width: 767px){.login-container{padding:1rem}.login-card{grid-template-columns:1fr;max-width:100%;min-height:auto;border-radius:1.5rem}.login-header{padding:2.5rem 1.5rem}.logo{flex-direction:column;gap:1rem}.logo h1{font-size:1.75rem}.login-subtitle{font-size:1rem}.login-form{padding:2.5rem 1.5rem}.login-features{padding:2rem 1.5rem}.features-grid{grid-template-columns:1fr}.login-footer{padding:1.5rem}}@media (max-width: 480px){.login-container{padding:.5rem}.login-card{border-radius:1rem;max-width:100%}.login-header{padding:2rem 1rem}.logo h1{font-size:1.5rem}.login-form{padding:2rem 1rem}.login-features{padding:1.5rem 1rem}.login-footer{padding:1rem}.form-group input{padding:.875rem 1rem;font-size:.875rem}.login-button,.auto-login-button{padding:.875rem 1.25rem;font-size:.875rem}}.chat-container{display:flex;flex-direction:column;height:100vh;background:var(--color-gray-50);font-family:var(--font-family-primary);position:relative;overflow:hidden}.chat-header{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-6) var(--spacing-8);background:var(--color-white);border-bottom:1px solid var(--color-gray-200);box-shadow:var(--shadow-sm);position:relative;z-index:2}.header-left{display:flex;align-items:center;gap:.75rem}.header-icon{color:var(--color-primary);width:28px;height:28px;filter:drop-shadow(0 2px 4px rgba(99,102,241,.2))}.header-info h2{margin:0;font-size:var(--font-size-xl);font-weight:var(--font-weight-bold);color:var(--color-gray-900);background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.model-info{font-size:var(--font-size-sm);color:var(--color-gray-500);font-weight:var(--font-weight-medium)}.header-actions{display:flex;gap:.5rem}.icon-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;background:var(--color-gray-100);border-radius:var(--radius-lg);color:var(--color-gray-500);cursor:pointer;transition:all var(--transition-base);box-shadow:var(--shadow-sm);position:relative;overflow:hidden}.icon-button:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary),var(--color-secondary));opacity:0;transition:opacity var(--transition-base)}.icon-button:hover{background:var(--color-gray-200);color:var(--color-primary);transform:translateY(-1px);box-shadow:var(--shadow-md)}.icon-button:hover:before{opacity:.1}.model-selector{padding:1rem 1.5rem;background:#fff;border-bottom:1px solid #e2e8f0}.model-selector h4{margin:0 0 .75rem;font-size:.875rem;font-weight:600;color:#374151}.model-option{display:block;width:100%;padding:.75rem;margin-bottom:.5rem;border:1px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer;transition:all .2s;text-align:left}.model-option:hover{border-color:#3b82f6;background:#f8fafc}.model-option.active{border-color:#3b82f6;background:#eff6ff}.model-name{font-weight:500;color:#1e293b;margin-bottom:.25rem}.model-description{font-size:.75rem;color:#64748b}.messages-container{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.message{display:flex;gap:.75rem;max-width:80%}.user-message{align-self:flex-end}.ai-message{align-self:flex-start}.message-avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;flex-shrink:0}.user-message .message-avatar{background:#3b82f6;color:#fff}.ai-message .message-avatar{background:#f1f5f9;color:#64748b}.message-content{flex:1;min-width:0}.message-text{padding:.75rem 1rem;border-radius:12px;line-height:1.5;word-wrap:break-word;white-space:pre-wrap}.user-message .message-text{background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));color:var(--color-white);border-bottom-right-radius:var(--radius-base);box-shadow:var(--shadow-sm)}.ai-message .message-text{background:var(--color-white);color:var(--color-gray-900);border:1px solid var(--color-gray-200);border-bottom-left-radius:var(--radius-base);box-shadow:var(--shadow-sm)}.message-time{font-size:.75rem;color:#64748b;margin-top:.25rem;text-align:left}.user-message .message-time{text-align:right}.typing-indicator{display:flex;gap:4px;padding:.75rem 1rem;background:#fff;border:1px solid #e2e8f0;border-radius:12px 12px 12px 4px}.typing-indicator span{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:typing 1.4s infinite ease-in-out}.typing-indicator span:nth-child(1){animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}.input-container{padding:1rem 1.5rem;background:#fff;border-top:1px solid #e2e8f0}.input-wrapper{display:flex;gap:.75rem;align-items:flex-end;max-width:800px;margin:0 auto}.message-input{flex:1;min-height:44px;max-height:120px;padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:12px;resize:none;font-family:inherit;font-size:.875rem;line-height:1.5;outline:none;transition:border-color .2s}.message-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.message-input:disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed}.send-button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:none;background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));color:var(--color-white);border-radius:var(--radius-xl);cursor:pointer;transition:all var(--transition-base);flex-shrink:0;box-shadow:var(--shadow-md);position:relative;overflow:hidden}.send-button:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,var(--color-primary-light),var(--color-primary));opacity:0;transition:opacity var(--transition-base)}.send-button:hover:not(:disabled){background:linear-gradient(135deg,var(--color-primary-dark),var(--color-primary));transform:translateY(-2px);box-shadow:var(--shadow-lg)}.send-button:hover:not(:disabled):before{opacity:.2}.send-button:disabled{background:var(--color-gray-300);cursor:not-allowed;transform:none;box-shadow:var(--shadow-sm)}@media (max-width: 1024px){.chat-header{padding:var(--spacing-4) var(--spacing-6)}.messages-container{padding:var(--spacing-4)}.input-container{padding:var(--spacing-4) var(--spacing-6)}}@media (max-width: 768px){.chat-container{height:100vh}.chat-header{padding:var(--spacing-4);flex-direction:column;gap:var(--spacing-3)}.header-left,.header-right{width:100%;justify-content:center}.message{max-width:90%}.input-wrapper{margin:0}.input-container{padding:var(--spacing-4)}.messages-container{padding:var(--spacing-3)}}@media (max-width: 480px){.chat-header{padding:var(--spacing-3)}.header-info h2{font-size:var(--font-size-lg)}.message{max-width:95%}.message-text{padding:var(--spacing-2) var(--spacing-3);font-size:var(--font-size-sm)}.input-container{padding:var(--spacing-3)}.message-input{font-size:var(--font-size-sm)}.send-button{width:44px;height:44px}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--color-primary: #6366f1;--color-primary-dark: #4f46e5;--color-primary-light: #818cf8;--color-secondary: #10b981;--color-secondary-dark: #059669;--color-secondary-light: #34d399;--color-accent: #f59e0b;--color-accent-dark: #d97706;--color-accent-light: #fbbf24;--color-success: #10b981;--color-warning: #f59e0b;--color-error: #ef4444;--color-info: #3b82f6;--color-gray-50: #f8fafc;--color-gray-100: #f1f5f9;--color-gray-200: #e2e8f0;--color-gray-300: #cbd5e1;--color-gray-400: #94a3b8;--color-gray-500: #64748b;--color-gray-600: #475569;--color-gray-700: #334155;--color-gray-800: #1e293b;--color-gray-900: #0f172a;--color-white: #ffffff;--color-black: #000000;--font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;--font-family-mono: "JetBrains Mono", "Fira Code", "Monaco", "Cascadia Code", monospace;--font-size-xs: .75rem;--font-size-sm: .875rem;--font-size-base: 1rem;--font-size-lg: 1.125rem;--font-size-xl: 1.25rem;--font-size-2xl: 1.5rem;--font-size-3xl: 1.875rem;--font-size-4xl: 2.25rem;--font-size-5xl: 3rem;--font-weight-thin: 100;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800;--font-weight-black: 900;--line-height-tight: 1.25;--line-height-snug: 1.375;--line-height-normal: 1.5;--line-height-relaxed: 1.625;--line-height-loose: 2;--spacing-0: 0;--spacing-1: .25rem;--spacing-2: .5rem;--spacing-3: .75rem;--spacing-4: 1rem;--spacing-5: 1.25rem;--spacing-6: 1.5rem;--spacing-8: 2rem;--spacing-10: 2.5rem;--spacing-12: 3rem;--spacing-16: 4rem;--spacing-20: 5rem;--spacing-24: 6rem;--spacing-32: 8rem;--radius-none: 0;--radius-sm: .125rem;--radius-base: .25rem;--radius-md: .375rem;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--radius-3xl: 1.5rem;--radius-full: 9999px;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-base: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, .06);--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-base: .2s cubic-bezier(.4, 0, .2, 1);--transition-slow: .3s cubic-bezier(.4, 0, .2, 1);--z-dropdown: 1000;--z-sticky: 1020;--z-fixed: 1030;--z-modal-backdrop: 1040;--z-modal: 1050;--z-popover: 1060;--z-tooltip: 1070;--z-toast: 1080}@media (prefers-color-scheme: dark){:root{--color-gray-50: #0f172a;--color-gray-100: #1e293b;--color-gray-200: #334155;--color-gray-300: #475569;--color-gray-400: #64748b;--color-gray-500: #94a3b8;--color-gray-600: #cbd5e1;--color-gray-700: #e2e8f0;--color-gray-800: #f1f5f9;--color-gray-900: #f8fafc;--color-white: #000000;--color-black: #ffffff}}html{height:100%;width:100%;font-size:16px;line-height:var(--line-height-normal);-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}body{height:100vh;width:100vw;margin:0;padding:0;font-family:var(--font-family-primary);font-size:var(--font-size-base);font-weight:var(--font-weight-normal);line-height:var(--line-height-normal);color:var(--color-gray-900);background:linear-gradient(135deg,#667eea,#764ba2);overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{height:100vh;width:100vw;margin:0;padding:0;display:flex;flex-direction:column;position:relative}.app{height:100vh;display:flex;flex-direction:column;background:var(--color-gray-50);position:relative;overflow:hidden}.main-layout{display:flex;height:100vh;background:var(--color-gray-50);position:relative}.scheduling-panel{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--color-white);border-radius:var(--radius-2xl) var(--radius-2xl) 0 0;margin:var(--spacing-4);margin-right:var(--spacing-2);box-shadow:var(--shadow-xl);overflow:hidden;position:relative;transition:all var(--transition-base)}.scheduling-panel.full-width{margin-right:var(--spacing-4)}.scheduling-panel:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--color-primary),var(--color-secondary),var(--color-accent));z-index:1}.chat-panel{width:420px;display:flex;flex-direction:column;background:var(--color-white);border-radius:var(--radius-2xl) var(--radius-2xl) 0 0;margin:var(--spacing-4);margin-left:var(--spacing-2);box-shadow:var(--shadow-xl);overflow:hidden;position:relative;animation:slideInRight var(--transition-slow) ease-out}@keyframes slideInRight{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.chat-panel:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--color-secondary),var(--color-accent),var(--color-primary));z-index:1}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:var(--color-white);position:relative;overflow:hidden}.loading-content{text-align:center;z-index:10;position:relative}.loading-screen:before{content:"";position:absolute;inset:0;background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');animation:float 20s ease-in-out infinite}.loading-spinner{width:60px;height:60px;border:4px solid rgba(255,255,255,.3);border-top:4px solid var(--color-white);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 2rem}.loading-content h2{font-size:1.5rem;font-weight:600;margin-bottom:.5rem;color:var(--color-white)}.loading-content p{font-size:1rem;opacity:.9;margin-bottom:1.5rem;color:var(--color-white)}.loading-dots{display:flex;justify-content:center;gap:.5rem}.loading-dots span{width:8px;height:8px;background-color:var(--color-white);border-radius:50%;animation:bounce 1.4s ease-in-out infinite both}.loading-dots span:nth-child(1){animation-delay:-.32s}.loading-dots span:nth-child(2){animation-delay:-.16s}.loading-dots span:nth-child(3){animation-delay:0s}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@keyframes float{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-20px) rotate(180deg)}}.loading-spinner{width:60px;height:60px;border:4px solid rgba(255,255,255,.2);border-top:4px solid var(--color-white);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:var(--spacing-6);position:relative;z-index:1}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-screen p{color:var(--color-white);font-size:var(--font-size-lg);font-weight:var(--font-weight-medium);margin:0;position:relative;z-index:1;text-shadow:0 2px 4px rgba(0,0,0,.1)}@media (max-width: 1400px){.scheduling-panel{margin-right:var(--spacing-1)}.chat-panel{margin-left:var(--spacing-1)}}@media (max-width: 1200px){.main-layout{flex-direction:column}.scheduling-panel{height:65vh;margin:var(--spacing-2);margin-bottom:var(--spacing-1)}.chat-panel{width:100%;height:35vh;margin:var(--spacing-2);margin-top:var(--spacing-1)}}@media (max-width: 768px){.main-layout{flex-direction:column}.scheduling-panel{height:60vh;margin:var(--spacing-1);margin-bottom:var(--spacing-1);border-radius:var(--radius-xl)}.chat-panel{width:100%;height:40vh;margin:var(--spacing-1);margin-top:var(--spacing-1);border-radius:var(--radius-xl)}.loading-screen p{font-size:var(--font-size-base)}}@media (max-width: 480px){.scheduling-panel,.chat-panel{margin:var(--spacing-1);border-radius:var(--radius-lg)}.loading-spinner{width:50px;height:50px}body{font-size:var(--font-size-sm)}}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.loading-spinner{border-width:2px}.scheduling-panel:before,.chat-panel:before{height:2px}}@media print{.scheduling-panel,.chat-panel{box-shadow:none;border:1px solid var(--color-gray-300)}.scheduling-panel:before,.chat-panel:before{display:none}}
