*{box-sizing:border-box;margin:0;padding:0}body{background:#f5f7fb;font-family:Segoe UI,Roboto,sans-serif}.app{min-height:100vh;display:flex}.sidebar{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);width:260px;box-shadow:none;background:#ffffffeb;border-right:1px solid #e9ecef;flex-direction:column;display:flex}.logo{border-bottom:1px solid #eef2f6;margin-bottom:16px;padding:28px 20px 20px 24px}.logo h2{color:#1e2f3e;letter-spacing:.2px;font-size:20px;font-weight:600}.nav{flex:1}.nav ul{list-style:none}.nav li{color:#2c3e50;cursor:pointer;border-radius:10px;margin:4px 8px;padding:12px 24px;font-size:15px;font-weight:500;transition:all .2s}.nav li:hover{color:#1e2f3e;background:#eef2fa}.nav li.active{color:#e6671e;background:#fff0e6;border-left:3px solid #e6671e;font-weight:600}.main{background:#f5f7fb;flex:1;padding:28px 36px;overflow-x:auto}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}.page-header h1{color:#1a2c3a;margin:0;font-size:28px;font-weight:600}.add-btn{color:#fff;cursor:pointer;background:#f97316;border:none;border-radius:30px;align-items:center;gap:8px;padding:10px 24px;font-size:14px;font-weight:600;transition:background .2s,transform 50ms;display:inline-flex;box-shadow:0 2px 4px #f9731633}.add-btn:hover{background:#ea580c}.page-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.export-btn{color:#1a2c3a;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:30px;align-items:center;gap:8px;padding:10px 24px;font-size:14px;font-weight:600;transition:background .2s,border-color .2s;display:inline-flex}.export-btn:hover{background:#f8fafc;border-color:#cbd5e1}.role-select{color:#1a2c3a;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-width:140px;padding:6px 10px;font-size:13px}.role-select:disabled{opacity:.6;cursor:wait}.table-container{background:#fff;border:1px solid #edf2f7;border-radius:20px;overflow-x:auto;box-shadow:0 4px 12px #00000008}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;color:#4a5b6e;background:#fefefe;border-bottom:1px solid #eef2f8;padding:16px 20px;font-weight:600}td{color:#1f2f3e;border-bottom:1px solid #f0f3f9;padding:14px 20px}tbody tr:hover{background:#fafcff}.action-buttons{gap:12px;display:flex}.icon-btn{cursor:pointer;color:#8b9ab0;background:0 0;border:none;align-items:center;font-size:18px;transition:color .2s;display:inline-flex}.icon-btn:hover{color:#f97316}.modal-overlay{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:1000;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:28px;width:520px;max-width:90%;padding:28px 32px;box-shadow:0 25px 40px #0000001a}.modal h3{color:#1e2f3e;margin-bottom:24px;font-size:22px;font-weight:600}.form-group{margin-bottom:20px}.form-group label{color:#2c3e50;margin-bottom:8px;font-weight:500;display:block}.form-group input,.form-group select{border:1px solid #dce3ec;border-radius:14px;width:100%;padding:10px 14px;font-size:14px;transition:all .2s}.form-group input:focus,.form-group select:focus{border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f9731633}.modal-actions{justify-content:flex-end;gap:14px;margin-top:28px;display:flex}.modal-actions button{cursor:pointer;border-radius:40px;padding:10px 20px;font-size:14px;font-weight:600;transition:all .2s}.cancel-btn{color:#475569;background:#f1f5f9;border:1px solid #dce3ec}.cancel-btn:hover{background:#e6edf4}.save-btn{color:#fff;background:#f97316;border:none}.save-btn:hover{background:#ea580c}@keyframes slideIn{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.auth-container{background:linear-gradient(135deg,#f5f7fa 0%,#e9ecef 100%);justify-content:center;align-items:center;min-height:100vh;display:flex}.auth-card{background:#fff;border-radius:16px;width:360px;max-width:90%;padding:2rem;box-shadow:0 8px 24px #0000001a}.auth-card h2{text-align:center;color:#1e2a3a;margin-bottom:1.5rem}.input-group{margin-bottom:1rem}.input-group label{color:#334155;margin-bottom:.5rem;font-weight:500;display:block}.input-group input{border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:.75rem;font-size:1rem;transition:border .2s}.input-group input:focus{border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f973161a}.button-group{gap:12px;margin-top:1.5rem;display:flex}.btn-primary{color:#fff;cursor:pointer;text-align:center;background:#f97316;border:none;border-radius:8px;flex:1;padding:.75rem;font-weight:600;text-decoration:none;transition:background .2s}.btn-primary:hover{background:#ea580c}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{color:#f97316;cursor:pointer;text-align:center;background:#fff;border:1px solid #f97316;border-radius:8px;flex:1;padding:.75rem;font-weight:600;text-decoration:none;transition:all .2s}.btn-secondary:hover{background:#fff7ed}.error-message{color:#b91c1c;text-align:center;background:#fee2e2;border-radius:8px;margin:1rem 0;padding:.75rem;font-size:.875rem}.auth-footer{text-align:center;color:#6c757d;margin-top:1rem;font-size:.875rem}.link-btn{color:#f97316;cursor:pointer;background:0 0;border:none;margin-left:.25rem;padding:0;font-weight:500;text-decoration:underline}.link-btn:hover{color:#ea580c}body.dark-theme{color:#f0f0f0;background-color:#0f0f1a}body.dark-theme .app{background-color:#0f0f1a}body.dark-theme .sidebar{background:#1a1a2e;border-right:1px solid #2a2a3e}body.dark-theme .sidebar .logo h2,body.dark-theme .sidebar .nav li{color:#e0e0e0}body.dark-theme .sidebar .nav li:hover{color:#fff;background:#2a2a3e}body.dark-theme .sidebar .nav li.active{color:#fff;background:#f97316;border-left-color:#fff}body.dark-theme .main{background:#0f0f1a}body.dark-theme .page-header h1,body.dark-theme .main h1,body.dark-theme .main h2{color:#fff}body.dark-theme .table-container{background:#1a1a2e;border:1px solid #2a2a3e}body.dark-theme th{color:#f0f0f0;background:#25253a;border-bottom-color:#3a3a4e}body.dark-theme td{color:#e0e0e0;border-bottom-color:#2a2a3e}body.dark-theme tbody tr:hover{background:#25253a}body.dark-theme .modal{color:#f0f0f0;background:#1a1a2e}body.dark-theme .modal h3{color:#f0f0f0}body.dark-theme .modal input,body.dark-theme .modal select,body.dark-theme .modal textarea{color:#f0f0f0;background:#2a2a3e;border-color:#3a3a4e}body.dark-theme .modal input:focus,body.dark-theme .modal select:focus{border-color:#f97316;outline:none}body.dark-theme .modal label{color:silver}body.dark-theme .profile-hero{background:linear-gradient(135deg,#2a2218 0%,#1a1a2e 60%);border-color:#7c4a1a}body.dark-theme .profile-hero-info h1{color:#f0f0f0}body.dark-theme .profile-login{color:#9ca3af}body.dark-theme .profile-role-badge{color:#fdba74;background:#431407}body.dark-theme .profile-card{color:#f0f0f0;background:#1a1a2e;border-color:#2a2a3e}body.dark-theme .profile-card-title h3{color:#f0f0f0}body.dark-theme .profile-field dt{color:#6b7280}body.dark-theme .profile-field dd{color:#e5e7eb}body.dark-theme .profile-field{border-bottom-color:#2a2a3e}body.dark-theme .profile-icon-btn{color:#9ca3af;background:#25253a;border-color:#3a3a4e}body.dark-theme .profile-edit-form .form-group label{color:#9ca3af}body.dark-theme .profile-edit-form .form-group input{color:#e0e0e0;background:#2a2a3e;border-color:#4a4a5a}body.dark-theme .profile-hint{color:#9ca3af}body.dark-theme .profile-logout-btn{color:#fca5a5;background:#1a1a2e;border-color:#7f1d1d}body.dark-theme .profile-logout-btn:hover{background:#450a0a}body.dark-theme .profile-alert-error{color:#fca5a5;background:#450a0a}body.dark-theme .profile-alert-success{color:#86efac;background:#14532d}body.dark-theme .btn-secondary{color:#f97316;background:#2a2a3e;border-color:#f97316}body.dark-theme .btn-secondary:hover{background:#3a3a4e}body.dark-theme .cancel-btn{color:#e0e0e0;background:#2a2a3e;border-color:#4a4a5a}body.dark-theme .status-text{color:#4caf50}body.dark-theme .icon-btn{color:silver}body.dark-theme .icon-btn:hover{color:#f97316}.profile-page{max-width:720px;margin:0 auto}.profile-loading{text-align:center;color:#6b7280;padding:48px}.profile-hero{background:linear-gradient(135deg,#fff7ed 0%,#fff 60%);border:1px solid #fed7aa;border-radius:20px;align-items:center;gap:24px;margin-bottom:28px;padding:28px 32px;display:flex;box-shadow:0 4px 16px #f9731614}.profile-avatar{color:#fff;background:linear-gradient(145deg,#f97316,#ea580c);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:80px;height:80px;font-size:32px;font-weight:700;display:flex;box-shadow:0 4px 12px #f9731659}.profile-hero-info h1{color:#1a2c3a;margin:0 0 4px;font-size:26px;font-weight:600}.profile-login{color:#6b7280;margin:0 0 10px;font-size:14px}.profile-role-badge{color:#c2410c;background:#ffedd5;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:600;display:inline-block}.profile-alert{border-radius:12px;margin-bottom:20px;padding:12px 16px;font-size:14px}.profile-alert-error{color:#b91c1c;background:#fef2f2;border-left:4px solid #ef4444}.profile-alert-success{color:#15803d;background:#f0fdf4;border-left:4px solid #22c55e}.profile-grid{flex-direction:column;gap:20px;display:flex}.profile-container{max-width:600px;margin:0 auto}.profile-card{background:#fff;border:1px solid #edf2f7;border-radius:16px;padding:24px 28px;box-shadow:0 2px 12px #0000000a}.profile-card-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.profile-card-title{color:#f97316;align-items:center;gap:10px;display:flex}.profile-card-title h3{color:#1e2f3e;margin:0;font-size:17px;font-weight:600}.profile-icon-btn{cursor:pointer;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;transition:all .2s;display:flex}.profile-icon-btn:hover{color:#f97316;background:#fff7ed;border-color:#fed7aa}.profile-fields{gap:16px;margin:0;display:grid}.profile-field{border-bottom:1px solid #f1f5f9;grid-template-columns:140px 1fr;gap:12px;padding-bottom:16px;display:grid}.profile-field:last-child{border-bottom:none;padding-bottom:0}.profile-field dt{color:#94a3b8;margin:0;font-size:13px;font-weight:600}.profile-field dd{color:#1e293b;margin:0;font-size:15px;font-weight:500}.profile-hint{color:#64748b;margin:0 0 16px;font-size:14px;line-height:1.5}.profile-edit-form .form-group{margin-bottom:16px}.profile-edit-form .form-group label{color:#475569;margin-bottom:6px;font-size:13px;font-weight:600;display:block}.profile-edit-form .form-group input{box-sizing:border-box;border:1px solid #dce3ec;border-radius:12px;width:100%;padding:10px 14px;font-size:14px}.profile-form-actions{flex-wrap:wrap;gap:12px;margin-top:8px;display:flex}.profile-action-btn{text-align:center;justify-content:center;width:100%}.profile-card-logout{box-shadow:none;background:0 0;border:none;padding:16px 28px}.profile-logout-btn{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #fecaca;border-radius:12px;justify-content:center;align-items:center;gap:10px;width:100%;padding:12px 20px;font-size:14px;font-weight:600;transition:all .2s;display:flex}.profile-logout-btn:hover{background:#fef2f2;border-color:#f87171}.success-message{color:#15803d;background:#dcfce7;border-radius:8px;margin-bottom:16px;padding:10px}.btn-danger{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:8px;padding:8px 16px}.topbar{z-index:100;background:0 0;justify-content:flex-end;padding:12px 24px;display:flex;position:sticky;top:0}.theme-toggle-btn{cursor:pointer;background:0 0;border:1px solid #cbd5e1;border-radius:50%;width:40px;height:40px;font-size:20px;transition:all .2s}body.dark-theme .theme-toggle-btn{color:#e0e0e0;border-color:#4a4a5a}.passport-hidden{cursor:pointer;background:#f8f9fa;border-radius:12px;padding:12px;transition:all .2s}body.dark-theme .passport-hidden{background:#2a2a3e}.click-to-show{color:#f97316;text-align:center;margin:0}.click-to-show:hover{text-decoration:underline}.calculator-container{max-width:600px;margin:0 auto;padding:20px}.calculator-card{background:#fff;border-radius:20px;padding:24px;box-shadow:0 2px 8px #00000014}.calculator-card .form-group{margin-bottom:20px}.calculator-card label{margin-bottom:8px;font-weight:500;display:block}.calculator-card select,.calculator-card input[type=number]{border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:10px;font-size:16px}.calculator-card .checkbox label{align-items:center;gap:8px;font-weight:400;display:flex}.calculate-btn{width:100%;margin-top:8px;padding:12px;font-size:16px}.result-card{text-align:center;background:#f0fdf4;border-radius:16px;margin-top:24px;padding:20px}.result-card .price{color:#f97316;margin:10px 0;font-size:32px;font-weight:700}.result-card small{color:#666;font-size:12px}body.dark-theme .calculator-card{background:#1a1a2e;border-color:#2a2a3e}body.dark-theme .result-card{background:#2a2a3e}body.dark-theme .result-card .price{color:#f97316}body.dark-theme .calculator-card label{color:#e0e0e0}body.dark-theme .calculator-card select,body.dark-theme .calculator-card input{color:#e0e0e0;background:#2a2a3e;border-color:#4a4a5a}body.dark-theme .result-card h3{color:#f0f0f0}body.dark-theme .result-card small{color:#aaa}.modal.large-modal{width:90%;max-width:1000px;max-height:90vh;overflow-y:auto}.modal-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.modal-header .close-btn{cursor:pointer;background:0 0;border:none;font-size:24px}.info-section{margin-bottom:24px}.info-section h4{color:#f97316;margin-bottom:12px}.form-row{align-items:center;gap:10px;margin-bottom:12px;display:flex}.form-row label{width:120px;font-weight:500}.form-row input,.form-row select,.form-row textarea{border:1px solid #ccc;border-radius:6px;flex:1;padding:6px 10px}.add-item-form,.add-route-form{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.add-item-form select,.add-item-form input{padding:6px}.order-edit-modal .order-form-grid,.cargo-fields-grid{grid-template-columns:repeat(2,1fr);gap:14px 16px;display:grid}.cargo-route-fields{flex-direction:column;grid-column:1/-1;gap:14px;display:flex}.order-edit-modal .form-group-full{grid-column:1/-1}.order-edit-modal .form-group label{color:#555;margin-bottom:6px;font-size:13px;font-weight:600;display:block}.order-edit-modal .form-group input,.order-edit-modal .form-group select,.order-edit-modal .auto-textarea{box-sizing:border-box;background:#fff;border:1px solid #dde1e6;border-radius:8px;width:100%;padding:10px 12px;font-size:14px;transition:border-color .2s,box-shadow .2s}.order-edit-modal .form-group input:focus,.order-edit-modal .form-group select:focus,.order-edit-modal .auto-textarea:focus{border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f973161f}.auto-textarea{resize:none;min-height:42px;font-family:inherit;line-height:1.5;overflow:hidden}.modal .auto-textarea,.modal .form-group-full .auto-textarea{box-sizing:border-box;background:#fafbfc;border:1px solid #dce3ec;border-radius:14px;width:100%;padding:12px 14px;font-size:14px;transition:border-color .2s,box-shadow .2s}.modal .auto-textarea:focus{background:#fff;border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f973161f}body.dark-theme .modal .auto-textarea{color:#e0e0e0;background:#2a2a3e;border-color:#4a4a5a}body.dark-theme .modal .auto-textarea:focus{background:#2a2a3e}.section-header-row{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.section-header-row h4{margin-bottom:0}.cargo-edit-card,.cargo-add-panel{background:#fafbfc;border:1px solid #e8ecf0;border-radius:12px;margin-bottom:14px;padding:16px 18px}.cargo-add-panel{background:#fff8f3;border-color:#fed7aa}.cargo-card-header{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.cargo-card-title{color:#333;font-size:15px;font-weight:600}.cargo-add-actions{gap:10px;margin-top:14px;display:flex}.empty-hint{color:#888;margin:0 0 12px;font-size:14px}.danger-btn:hover{color:#e53e3e}body.dark-theme .order-edit-modal .form-group input,body.dark-theme .order-edit-modal .form-group select,body.dark-theme .order-edit-modal .auto-textarea{color:#e0e0e0;background:#2a2a3e;border-color:#4a4a5a}body.dark-theme .order-edit-modal .form-group label{color:#aaa}body.dark-theme .cargo-edit-card{background:#1e1e30;border-color:#3a3a4e}body.dark-theme .cargo-add-panel{background:#2a2218;border-color:#7c4a1a}body.dark-theme .cargo-card-title{color:#e0e0e0}.status-badge-request,.status-badge-order,.status-badge-processing{white-space:nowrap;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.status-badge-request{color:#92400e;background:#fef3c7}.status-badge-order{color:#1e40af;background:#dbeafe}.status-badge-processing{color:#c2410c;background:#ffedd5}body.dark-theme .status-badge-request{color:#fcd34d;background:#422006}body.dark-theme .status-badge-order{color:#93c5fd;background:#1e3a5f}body.dark-theme .status-badge-processing{color:#fdba74;background:#431407}.order-status-badge{white-space:nowrap;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.order-status-new{color:#1e40af;background:#dbeafe}.order-status-in-progress{color:#c2410c;background:#ffedd5}.order-status-delivered{color:#166534;background:#dcfce7}.order-status-cancelled{color:#991b1b;background:#fee2e2}.order-status-pending{color:#92400e;background:#fef3c7}body.dark-theme .order-status-new{color:#93c5fd;background:#1e3a5f}body.dark-theme .order-status-in-progress{color:#fdba74;background:#431407}body.dark-theme .order-status-delivered{color:#86efac;background:#14532d}body.dark-theme .order-status-cancelled{color:#fca5a5;background:#450a0a}body.dark-theme .order-status-pending{color:#fcd34d;background:#422006}.topbar-actions{align-items:center;gap:12px;display:flex}.notification-bell{position:relative}.notification-btn{cursor:pointer;color:inherit;background:0 0;border:none;border-radius:8px;align-items:center;padding:8px;display:flex;position:relative}.notification-btn:hover{background:#0000000f}.notification-badge{color:#fff;background:#ef4444;border-radius:8px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:700;display:flex;position:absolute;top:2px;right:2px}.notification-panel{z-index:1000;background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:340px;max-height:420px;margin-top:8px;position:absolute;top:100%;right:0;overflow:hidden;box-shadow:0 10px 40px #0000001f}.notification-panel-header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.notification-read-all{color:#f97316;cursor:pointer;background:0 0;border:none;font-size:13px}.notification-list{max-height:360px;overflow-y:auto}.notification-item{cursor:pointer;border-bottom:1px solid #f3f4f6;padding:12px 16px;transition:background .15s}.notification-item.unread{background:#fff7ed}.notification-item:hover{background:#f9fafb}.notification-item-title{margin-bottom:4px;font-size:14px;font-weight:600}.notification-item-message{color:#555;font-size:13px;line-height:1.4}.notification-item-time{color:#999;margin-top:6px;font-size:11px}.notification-empty{text-align:center;color:#888;margin:0;padding:24px}body.dark-theme .notification-panel{background:#1a1a2e;border-color:#3a3a4e}body.dark-theme .notification-item.unread{background:#2a2218}body.dark-theme .notification-item-message{color:#bbb}body.dark-theme .notification-btn:hover{background:#ffffff14}.notification-toast{z-index:9999;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-left:4px solid #f97316;border-radius:12px;width:320px;padding:16px 20px;animation:.35s toast-slide-in;position:fixed;bottom:24px;right:24px;box-shadow:0 8px 32px #00000026}@keyframes toast-slide-in{0%{opacity:0;transform:translate(120%)}to{opacity:1;transform:translate(0)}}.notification-toast-title{margin-bottom:4px;font-size:15px;font-weight:600}.notification-toast-message{color:#555;font-size:13px;line-height:1.4}body.dark-theme .notification-toast{background:#1a1a2e;border-color:#3a3a4e #3a3a4e #3a3a4e #f97316}body.dark-theme .notification-toast-message{color:#bbb}@media (width<=992px){.sidebar{z-index:1000;background:#fff;width:280px;height:100vh;transition:left .3s;position:fixed;top:0;left:-300px;box-shadow:2px 0 8px #0000001a}.sidebar.open{left:0}.overlay{z-index:999;background:#0006;width:100%;height:100%;display:none;position:fixed;top:0;left:0}.overlay.show{display:block}.burger-btn{cursor:pointer;background:0 0;border:none;padding:8px 12px;font-size:28px;display:block!important}.main{margin-left:0;padding:16px}.page-header h1{font-size:20px}.table-container{border-radius:12px;overflow-x:auto}.data-table{min-width:600px;font-size:13px}.data-table th,.data-table td{white-space:nowrap;padding:8px 10px}.action-buttons{gap:4px}.action-buttons .icon-btn{padding:4px;font-size:16px}.modal{border-radius:16px;width:95%;max-width:95%;max-height:90vh;padding:16px}.modal h3{font-size:18px}.modal .form-group{margin-bottom:12px}.modal .form-group input,.modal .form-group select,.modal .form-group textarea{padding:10px 12px;font-size:16px}.auth-card{width:90%;padding:24px 20px}.auth-card h2{font-size:22px}.topbar{flex-wrap:wrap;gap:8px;padding:8px 12px}.topbar-actions{gap:6px}.theme-toggle-btn{width:36px;height:36px;font-size:18px}.calculator-container{padding:12px}.calculator-card{padding:16px}.calculator-card .form-group label{font-size:14px}.result-card .price{font-size:24px}}@media (width<=480px){.sidebar{width:240px;left:-260px}.data-table{min-width:500px;font-size:12px}.data-table th,.data-table td{padding:6px 8px}.modal{padding:12px}.auth-card{padding:16px}.btn-primary,.btn-secondary{padding:8px 14px;font-size:14px}}.burger-btn{display:none!important}@media (width<=992px){.burger-btn{display:block!important}}
/* ===== ТЁМНАЯ ТЕМА ===== */
body.dark-theme {
    background: #0f0f1a;
    color: #f0f0f0;
}

body.dark-theme .app {
    background: #0f0f1a;
}

body.dark-theme .sidebar {
    background: #1a1a2e;
    border-right-color: #2a2a3e;
}

body.dark-theme .logo h2,
body.dark-theme .nav li {
    color: #e0e0e0;
}

body.dark-theme .nav li.active {
    background: #f97316;
    color: white;
    border-left-color: white;
}

body.dark-theme .main {
    background: #0f0f1a;
}

/* Таблицы */
body.dark-theme .table-container {
    background: #1a1a2e;
    border-color: #2a2a3e;
}

body.dark-theme .data-table th {
    background: #25253a;
    color: #f0f0f0;
    border-bottom-color: #3a3a4e;
}

body.dark-theme .data-table td {
    color: #e0e0e0;
    border-bottom-color: #2a2a3e;
}

body.dark-theme .data-table tbody tr:hover {
    background: #25253a;
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ SELECT (выпадающий список) ===== */
body.dark-theme select {
    background: #2a2a3e;
    color: #f0f0f0;
    border: 1px solid #4a4a5a;
}

body.dark-theme select option {
    background: #1a1a2e;
    color: #f0f0f0;
}

/* ===== СТРАНИЦА ВХОДА/РЕГИСТРАЦИИ (всегда светлая) ===== */
.auth-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 360px;
    max-width: 90%;
}

.auth-card h2 {
    color: #1e2a3a !important;
}

.auth-card .input-group label {
    color: #334155 !important;
}

.auth-card .input-group input {
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e2a3a !important;
}

/* Кнопки на странице авторизации — всегда оранжевые/белые */
.auth-card .btn-primary {
    background: #f97316 !important;
    color: white !important;
    border: none !important;
}

.auth-card .btn-primary:hover {
    background: #ea580c !important;
}

.auth-card .btn-secondary {
    background: white !important;
    color: #f97316 !important;
    border: 1px solid #f97316 !important;
}

.auth-card .btn-secondary:hover {
    background: #fff7ed !important;
}

.auth-card .error-message {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

/* ===== АДАПТИВНОСТЬ (мобильные) ===== */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }
    .sidebar.open {
        left: 0;
    }
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }
    .overlay.show {
        display: block;
    }
    .burger-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        padding: 8px 12px;
        color: #1e2a3a;
    }
    body.dark-theme .burger-btn {
        color: #e0e0e0;
    }
    .main {
        padding: 16px;
        margin-left: 0;
    }
    .page-header h1 {
        font-size: 20px;
    }
    .table-container {
        overflow-x: auto;
        border-radius: 12px;
    }
    .data-table {
        font-size: 13px;
        min-width: 600px;
    }
    .data-table th,
    .data-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    .action-buttons {
        gap: 4px;
    }
    .action-buttons .icon-btn {
        font-size: 16px;
        padding: 4px;
    }
    .modal {
        width: 95%;
        max-width: 95%;
        padding: 16px;
        border-radius: 16px;
        max-height: 90vh;
    }
    .modal h3 {
        font-size: 18px;
    }
    .modal .form-group {
        margin-bottom: 12px;
    }
    .modal .form-group input,
    .modal .form-group select,
    .modal .form-group textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    .auth-card {
        width: 90%;
        padding: 24px 20px;
    }
    .auth-card h2 {
        font-size: 22px;
    }
    .topbar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .topbar-actions {
        gap: 6px;
    }
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .calculator-container {
        padding: 12px;
    }
    .calculator-card {
        padding: 16px;
    }
    .calculator-card .form-group label {
        font-size: 14px;
    }
    .result-card .price {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 240px;
        left: -260px;
    }
    .data-table {
        font-size: 12px;
        min-width: 500px;
    }
    .data-table th,
    .data-table td {
        padding: 6px 8px;
    }
    .modal {
        padding: 12px;
    }
    .auth-card {
        padding: 16px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 8px 14px;
        font-size: 14px;
    }
}
