/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* ===== LOGIN PAGE ===== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 30%, #153d6b 60%, #1a4a7a 100%);
    overflow: hidden;
    position: relative;
}

/* Stalactites */
.stalactites {
    position: fixed;
    top: 0;
    z-index: 1;
    pointer-events: none;
}

.stalactites-left {
    left: 0;
    width: 150px;
    height: 100vh;
}

.stalactites-right {
    right: 0;
    width: 150px;
    height: 100vh;
}

.stalactites-top {
    left: 0;
    width: 100%;
    height: 120px;
}

/* Particules de givre */
.frost-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(200, 230, 255, 0.6);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    background: rgba(200, 230, 255, 0.2);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(1.3); opacity: 1; }
}

/* Login card */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-icon {
    margin-bottom: 16px;
}

.login-card h1 {
    color: #c8e6ff;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.login-subtitle {
    color: rgba(160, 200, 240, 0.6);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.login-error {
    background: rgba(220, 50, 50, 0.2);
    border: 1px solid rgba(220, 50, 50, 0.4);
    color: #ff9999;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-card label {
    display: block;
    color: rgba(180, 215, 255, 0.7);
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #e0eeff;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.login-card input:focus {
    border-color: rgba(100, 180, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(80, 160, 255, 0.15);
}

.btn-login {
    width: 100%;
    padding: 13px 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #3498db, #5dade2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ===== DASHBOARD ===== */
.dashboard-body {
    min-height: 100vh;
    background: #f0f4f8;
}

.header {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    color: white;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}

.header-center {
    display: flex;
    align-items: center;
}

.store-switcher {
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.store-switcher:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.store-switcher option {
    background: #1a3a5c;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.btn-logout {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 30px;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: linear-gradient(135deg, #3498db, #5dade2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Modal petit (choix mois/annee) */
.modal-small {
    max-width: 400px;
}

.modal-small form {
    padding: 24px;
}

.modal-small select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    background: white;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.modal-small select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}

/* Fridge table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.fridge-table {
    width: 100%;
    border-collapse: collapse;
}

.fridge-table thead {
    background: #f8fafc;
}

.fridge-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.fridge-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.fridge-table tbody tr {
    transition: background 0.15s;
}

.fridge-table tbody tr:hover {
    background: #f8fafc;
}

.fridge-table th:nth-child(3),
.fridge-table td:nth-child(3),
.fridge-table th:nth-child(4),
.fridge-table td:nth-child(4),
.fridge-table th:nth-child(5),
.fridge-table td:nth-child(5) {
    text-align: center;
}

.col-eye {
    width: 50px;
    text-align: center !important;
}

.btn-eye {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #94a3b8;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-eye:hover {
    color: #3498db;
    background: rgba(52,152,219,0.1);
}

.btn-eye.active {
    color: #2980b9;
    background: rgba(52,152,219,0.15);
}

.badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-positif {
    background: #dbeafe;
    color: #1e40af;
}

.badge-negatif {
    background: #ede9fe;
    color: #5b21b6;
}

.empty-msg {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 15px;
    display: none;
}

/* ===== TEMPERATURES SECTION ===== */
.temps-section {
    margin-top: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.temps-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.temps-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.temps-header-left .btn-month-nav {
    width: 30px;
    height: 30px;
    font-size: 16px;
}

.temps-header-left .btn-month-nav:disabled,
.temps-header-left .btn-month-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.temps-header h2 {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
}

.temps-legend {
    display: flex;
    gap: 12px;
}

.legend-item {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.legend-weekend {
    background: #e0f2fe;
    color: #0369a1;
}

.legend-holiday {
    background: #f3e8ff;
    color: #7c3aed;
}

.legend-error {
    background: #fee2e2;
    color: #dc2626;
}

.temps-table-wrap {
    overflow-x: auto;
}

.temps-table {
    width: 100%;
    border-collapse: collapse;
}

.temps-table thead {
    background: #f8fafc;
}

.temps-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.temps-table td {
    padding: 8px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.temps-table tbody tr {
    transition: background 0.1s;
}

/* Weekend rows */
.temps-table tr.row-weekend {
    background: #eff6ff;
}

.temps-table tr.row-weekend td {
    color: #1e40af;
    font-weight: 500;
}

/* Holiday rows */
.temps-table tr.row-holiday {
    background: #faf5ff;
}

.temps-table tr.row-holiday td {
    color: #6d28d9;
}

/* Error rows */
.temps-table tr.row-error {
    background: #fef2f2 !important;
}

.temps-table tr.row-error td {
    color: #dc2626 !important;
    font-weight: 600;
}

.temps-table tr.row-error td.temp-cell {
    position: relative;
}

.temps-table tr.row-error td.temp-cell::after {
    content: '!';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    margin-left: 6px;
    vertical-align: middle;
}

.holiday-badge {
    display: inline-block;
    padding: 1px 8px;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 11px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

.day-label {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    margin-right: 4px;
}

/* ===== ACTIONS COLUMN IN FRIDGE TABLE ===== */
.col-actions {
    width: 80px;
    text-align: center !important;
}

.actions-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-edit-fridge,
.btn-delete-fridge {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-fridge {
    color: #c0c8d0;
}

.btn-edit-fridge:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.08);
}

.btn-delete-fridge {
    color: #e0e0e0;
}

.btn-delete-fridge:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
    display: flex;
    gap: 4px;
}

.lang-btn-sm {
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.lang-btn-sm:hover, .lang-btn-sm.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.5);
}

/* ===== TOOLBAR LEFT ===== */
.toolbar-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-multiprint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-multiprint:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ===== MONTH NAV ROW (+/- buttons) ===== */
.month-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.month-nav-selects {
    display: flex;
    gap: 8px;
    flex: 1;
}

.month-nav-selects select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    background: white;
    cursor: pointer;
    outline: none;
}

.month-nav-selects select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}

.btn-month-nav {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d0d8e0;
    background: #f8fafc;
    color: #475569;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-month-nav:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ===== MULTI-PRINT FRIDGE LIST ===== */
.mp-fridge-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 0;
    margin-top: 4px;
}

.mp-check-label {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}

.mp-check-label:last-child {
    border-bottom: none;
}

.mp-check-label:hover {
    background: #f8fafc;
}

.mp-check-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    margin: 0 14px 0 0;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.15s;
}

.mp-check-label input[type="checkbox"]:checked {
    background: #3498db;
    border-color: #3498db;
}

.mp-check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mp-fname {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.mp-check-label.mp-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fafafa;
}

.mp-check-label.mp-disabled .mp-fname {
    text-decoration: line-through;
    font-weight: 400;
}

.mp-check-label.mp-disabled input {
    cursor: not-allowed;
}

.mp-date {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    white-space: nowrap;
}

/* ===== SETTINGS BUTTON ===== */
.btn-settings {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 5px 8px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-settings:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.5);
}

/* ===== SETTINGS MODAL SECTIONS ===== */
.settings-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.settings-section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.btn-small {
    padding: 7px 14px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #d0d8e0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn-small:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.days-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.day-check-label {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.day-check-label:has(input:checked) {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.day-check-label input {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    margin: 0 14px 0 0;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.15s;
}

.day-check-label input:checked {
    background: #3498db;
    border-color: #3498db;
}

.day-check-label input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== MEASURE DAYS (fridge form) ===== */
.measure-days {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.measure-days .day-check-label {
    padding: 7px 12px;
    font-size: 13px;
}

.measure-days .day-check-label input {
    margin: 0 8px 0 0;
}

.settings-check-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.settings-check-row input {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    margin: 0 14px 0 0;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.15s;
}

.settings-check-row input:checked {
    background: #3498db;
    border-color: #3498db;
}

.settings-check-row input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== CALENDAR GRID MODAL ===== */
.cal-grid-legend {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 11px;
}

.cal-leg {
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.cal-leg-open {
    background: #dcfce7;
    color: #166534;
}

.cal-leg-closed {
    background: #fee2e2;
    color: #991b1b;
}

.cal-leg-we {
    background: #dbeafe;
    color: #1e40af;
}

.cal-leg-hol {
    background: #f3e8ff;
    color: #7c3aed;
}

.cal-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cal-grid-table th {
    background: #1a3a5c;
    color: white;
    padding: 6px;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-grid-cell {
    border: 1px solid #d0d5dd;
    padding: 6px 4px;
    text-align: center;
    vertical-align: top;
    height: 62px;
    cursor: pointer;
    transition: all 0.15s;
}

.cal-grid-cell:hover {
    box-shadow: inset 0 0 0 2px #3498db;
}

.cal-grid-open {
    background: #dcfce7;
}

.cal-grid-open .cal-grid-num {
    color: #166534;
}

.cal-grid-closed {
    background: #fee2e2;
}

.cal-grid-closed .cal-grid-num {
    color: #991b1b;
}

.cal-grid-empty {
    border: 1px solid #eee;
    background: #fafafa;
}

.cal-grid-num {
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.cal-grid-day {
    font-size: 9px;
    color: #888;
    margin: 1px 0;
}

.cal-grid-holname {
    font-size: 7px;
    color: #7c3aed;
    line-height: 1.1;
}

/* ===== HOLIDAYS LIST VIEW ===== */
.hol-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.hol-row:hover {
    box-shadow: inset 0 0 0 2px #3498db;
}

.hol-open {
    background: #dcfce7;
}

.hol-closed {
    background: #fee2e2;
}

.hol-date {
    font-weight: 700;
    font-size: 14px;
    min-width: 80px;
    color: #334155;
}

.hol-name {
    flex: 1;
    font-size: 14px;
    color: #334155;
    padding: 0 12px;
}

.hol-open .hol-status {
    font-size: 12px;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}

.hol-closed .hol-status {
    font-size: 12px;
    font-weight: 600;
    color: #991b1b;
    white-space: nowrap;
}

/* ===== PASSWORD INPUT WITH EYE ===== */
.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: white;
}

.pw-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}

.pw-eye {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.pw-eye:hover {
    color: #3498db;
}

.pw-eye.active {
    color: #2980b9;
}

/* ===== CLOSED DAYS & TOGGLE BUTTONS ===== */
.row-closed {
    background: #f9fafb;
}

.row-closed td {
    color: #94a3b8;
}

.closed-label {
    font-style: italic;
    color: #94a3b8;
    font-size: 13px;
}

.btn-toggle-day {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.btn-open-day {
    background: #dcfce7;
    color: #166534;
}

.btn-open-day:hover {
    background: #bbf7d0;
}

.btn-close-day {
    background: #fee2e2;
    color: #991b1b;
}

.btn-close-day:hover {
    background: #fecaca;
}

/* ===== PRINT BUTTON ===== */
.temps-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-print {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #d0d8e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ===== DELETE CONFIRMATION MODAL ===== */
.modal-header-danger {
    border-bottom-color: #fecaca;
}

.delete-modal-body {
    padding: 24px 24px 8px;
    text-align: center;
}

.delete-icon-wrap {
    margin-bottom: 16px;
}

.delete-modal-body p {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

.delete-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px 24px;
}

.btn-danger {
    padding: 10px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===== INFO MODAL ===== */
.info-modal-body {
    padding: 24px 24px 8px;
    text-align: center;
}

.info-modal-body p {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    white-space: pre-line;
}

#info-modal-icon {
    margin-bottom: 12px;
}

.info-modal-actions {
    display: flex;
    justify-content: center;
    padding: 16px 24px 24px;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 18px;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.modal form {
    padding: 24px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.modal select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    background: white;
    cursor: pointer;
}

.modal select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}

.modal input[type="text"],
.modal input[type="date"],
.modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d8e0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.2s;
}

.modal input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-cancel {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-submit {
    padding: 10px 24px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #3498db, #5dade2);
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stalactites-left, .stalactites-right {
        width: 80px;
    }

    .login-card {
        padding: 36px 28px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .temps-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        padding: 16px;
    }

    .header {
        height: auto;
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .header h1 {
        font-size: 15px;
    }

    .header-left {
        gap: 8px;
    }

    .header-icon {
        width: 22px;
        height: 22px;
    }

    .header-right {
        gap: 6px;
        flex-wrap: wrap;
    }

    .user-name {
        font-size: 12px;
    }

    .btn-logout {
        font-size: 11px;
        padding: 4px 8px;
    }

    .btn-settings {
        padding: 4px 6px;
    }

    .lang-btn-sm {
        padding: 2px 5px;
        font-size: 10px;
    }

    .store-switcher {
        font-size: 12px;
        padding: 4px 24px 4px 8px;
    }
}

@media (max-width: 480px) {
    .stalactites-left, .stalactites-right {
        width: 50px;
    }

    .fridge-table th:nth-child(4),
    .fridge-table td:nth-child(4),
    .fridge-table th:nth-child(5),
    .fridge-table td:nth-child(5) {
        display: none;
    }
}
