/* ============================================================
   ★★★ 字体导入（Plus Jakarta Sans） ★★★
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    min-height: 100vh;
}

/* ============================================================
   HAMBURGER MENU - MODERN SIDEBAR
   ============================================================ */

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1001;
    background: linear-gradient(135deg, #00838f, #00acc1);
    border: none;
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(0, 172, 193, 0.3);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.hamburger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 172, 193, 0.4);
}

.hamburger-btn .bar {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    backdrop-filter: blur(4px);
    animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== SIDEBAR - SLIDING ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #00838f, #00acc1);
    color: white;
    min-height: 100vh;
    padding: 25px 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 172, 193, 0.2);
    z-index: 99;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4dd0e1;
    letter-spacing: 0.5px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b2ebf2;
    text-decoration: none;
    padding: 13px 18px;
    margin: 6px 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    background: rgba(77, 208, 225, 0.25);
    color: white;
    transform: translateX(5px);
}

.sidebar a.active {
    background: #4dd0e1;
    color: white;
    box-shadow: 0 4px 15px rgba(77, 208, 225, 0.4);
}

.sidebar .logout {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    color: #ff6b6b;
}

.sidebar .logout:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* ===== SIDEBAR CLOSE BUTTON ===== */
.sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== LANGUAGE SWITCHER (SIDEBAR) ===== */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin: 15px 0 10px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lang-switcher a {
    color: #b2ebf2;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.lang-switcher a:hover {
    background: rgba(255,255,255,0.1);
}

.lang-switcher a.active {
    background: #4dd0e1;
    color: white;
}

/* ===== MAIN CONTENT - WITH MARGIN ===== */
.main {
    margin-left: 280px;
    padding: 35px 40px;
    width: calc(100% - 280px);
    min-height: 100vh;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main.expanded {
    margin-left: 0;
    width: 100%;
}

.main h1 {
    font-size: 30px;
    font-weight: 700;
    color: #00838f;
    margin-bottom: 4px;
}

.main .subtitle {
    color: #00acc1;
    font-size: 15px;
    margin-bottom: 30px;
}

/* ============================================================
   RESPONSIVE - SHOW HAMBURGER ON MOBILE/TABLET
   ============================================================ */
@media (max-width: 992px) {
    .hamburger-btn {
        display: flex !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.closed {
        transform: translateX(-100%);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main {
        margin-left: 0;
        width: 100%;
        padding: 25px 20px;
        padding-top: 80px;
    }
    
    .main.expanded {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 280px;
    }
    
    .main {
        padding: 15px 12px;
        padding-top: 75px;
    }
    
    .hamburger-btn {
        top: 12px;
        left: 12px;
        padding: 10px 12px;
        width: 42px;
        height: 42px;
    }
    
    .hamburger-btn .bar {
        width: 20px;
        height: 2.5px;
    }
    
    .sidebar a {
        font-size: 14px;
        padding: 11px 14px;
    }
}

/* ===== DESKTOP - SIDEBAR ALWAYS VISIBLE ===== */
@media (min-width: 993px) {
    .sidebar {
        transform: translateX(0) !important;
    }
    
    .sidebar.closed {
        transform: translateX(0) !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .sidebar-close {
        display: none !important;
    }
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #00838f, #00acc1, #4dd0e1);
    position: relative;
}

.login-box {
    background: white;
    padding: 50px 45px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 172, 193, 0.3);
    width: 420px;
    text-align: center;
    position: relative;
}

.login-box h1 {
    font-size: 36px;
    color: #00838f;
    margin-bottom: 4px;
}

.login-box .login-subtitle {
    color: #00acc1;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
}

.login-box input {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    border: 2px solid #b2ebf2;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: #4dd0e1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.15);
}

.login-box button {
    width: 100%;
    background: linear-gradient(135deg, #4dd0e1, #00acc1);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 16px;
}

.login-box button:hover {
    background: linear-gradient(135deg, #26c6da, #00838f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 208, 225, 0.3);
}

.login-box .demo {
    margin-top: 18px;
    font-size: 14px;
    color: #95a5a6;
}

.login-box .error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* ===== LOGIN LANGUAGE BUTTONS - OUTSIDE LOGIN BOX ===== */
.login-lang-buttons-outer {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.login-lang-buttons-outer .lang-btn {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-lang-buttons-outer .lang-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.login-lang-buttons-outer .lang-btn.active {
    background: #4dd0e1;
    border-color: #4dd0e1;
    box-shadow: 0 4px 14px rgba(77, 208, 225, 0.5);
}

.login-lang-buttons-outer .lang-btn.active:hover {
    background: #26c6da;
    border-color: #26c6da;
}

/* ===== OVERDUE COLLAPSIBLE ===== */
.overdue-container {
    background: #fdedec;
    border-left: 6px solid #e74c3c;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.overdue-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.overdue-toggle:hover {
    background: rgba(231, 76, 60, 0.08);
}

.overdue-icon {
    font-size: 24px;
}

.overdue-count {
    font-weight: 700;
    font-size: 16px;
    color: #b03a2e;
}

.overdue-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #b03a2e;
    transition: transform 0.3s ease;
}

.overdue-arrow.open {
    transform: rotate(90deg);
}

.overdue-details {
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(231, 76, 60, 0.2);
}

.overdue-details p {
    color: #5d6d7e;
    margin: 12px 0 8px 0;
}

.overdue-details ul {
    margin: 0;
    padding-left: 20px;
}

.overdue-details li {
    color: #2c3e50;
    font-size: 14px;
    padding: 4px 0;
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}

.card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 6px solid #4dd0e1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 172, 193, 0.15);
}

.card .number {
    font-size: 38px;
    font-weight: 800;
    margin-top: 8px;
}

.card.blue { border-left-color: #4dd0e1; }
.card.blue .number { color: #4dd0e1; }
.card.green { border-left-color: #2ecc71; }
.card.green .number { color: #2ecc71; }
.card.orange { border-left-color: #f39c12; }
.card.orange .number { color: #f39c12; }
.card.red { border-left-color: #e74c3c; }
.card.red .number { color: #e74c3c; }
.card.purple { border-left-color: #9b59b6; }
.card.purple .number { color: #9b59b6; }

/* ===== FILTER BUTTONS ===== */
.card.active-filter {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 172, 193, 0.2);
    border: 3px solid #4dd0e1;
}

.card.all-filter {
    background: #00838f;
    color: white;
}

.card.all-filter .number {
    color: white !important;
}

.card.all-filter:hover {
    background: #00acc1;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.08);
    margin-top: 10px;
}

th {
    background: linear-gradient(135deg, #00838f, #00acc1);
    color: white;
    padding: 16px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
    vertical-align: middle;
}

tr:hover td {
    background: #e0f7fa;
}

/* ===== STATUS BADGES ===== */
.status {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status.taken { background: #d5f5e3; color: #1a7a42; }
.status.missed { background: #fadbd8; color: #b03a2e; }
.status.late { background: #fdebd0; color: #b9770e; }
.status.refused { background: #ebdef0; color: #7d3c98; }
.status.pending { background: #e0f7fa; color: #00acc1; }
.status.overdue { background: #fadbd8; color: #b03a2e; }
.status.active { background: #d5f5e3; color: #1a7a42; }
.status.inactive { background: #fadbd8; color: #b03a2e; }

/* ===== STATUS BADGE - NEW (Active Green / Inactive Red) ===== */
.status-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.status-badge.active {
    background: #d5f5e3;
    color: #1a7a42;
}
.status-badge.inactive {
    background: #fadbd8;
    color: #b03a2e;
}

/* ===== BUTTONS ===== */
.btn-add {
    background: linear-gradient(135deg, #4dd0e1, #00acc1);
    color: white;
    padding: 11px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(77, 208, 225, 0.3);
}

.btn-add:hover {
    background: linear-gradient(135deg, #26c6da, #00838f);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(77, 208, 225, 0.4);
}

.btn-edit {
    color: #4dd0e1;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-edit:hover {
    background: #e0f7fa;
}

.btn-delete {
    color: #e74c3c;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-delete:hover {
    background: #fdedec;
}

.btn-report {
    color: #4dd0e1;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s;
}

.btn-report:hover {
    background: #e0f7fa;
}

.btn-take {
    background: #2ecc71;
    color: white;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.btn-take:hover {
    background: #1e8e4a;
    transform: scale(1.04);
}

.btn-skip {
    background: #f39c12;
    color: white;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-left: 6px;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.btn-skip:hover {
    background: #b9770e;
    transform: scale(1.04);
}

.btn-save {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 13px 34px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    transform: translateY(-2px);
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    padding: 13px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cancel:hover {
    background: #6b7b7d;
}

.btn-telegram {
    background: #0088cc;
    color: white;
    padding: 13px 34px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
    background: #006699;
    transform: translateY(-2px);
}

.done {
    color: #2ecc71;
    font-weight: 700;
    font-size: 14px;
    background: #d5f5e3;
    padding: 5px 16px;
    border-radius: 30px;
    display: inline-block;
}

/* ===== FORMS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    background: white;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 172, 193, 0.08);
    margin-top: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #00838f;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #b2ebf2;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4dd0e1;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 8% auto;
    padding: 0;
    width: 500px;
    max-width: 92%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #00838f;
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: 0.3s;
}

.modal-header .close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.modal-body .warning {
    color: #e74c3c;
    font-weight: 600;
    background: #fadbd8;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 12px 0;
}

/* ===== SKIP OPTIONS ===== */
.skip-options {
    margin: 15px 0;
}

.skip-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 6px 0;
    border: 2px solid #b2ebf2;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-option:hover {
    background: #e0f7fa;
    border-color: #4dd0e1;
}

.skip-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4dd0e1;
    flex-shrink: 0;
}

.skip-option span {
    font-size: 14px;
    color: #1a2a3a;
}

.skip-other {
    margin: 12px 0 18px 0;
}

.skip-other input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #b2ebf2;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.skip-other input:focus {
    border-color: #4dd0e1;
    outline: none;
}

/* ===== MODAL ACTION BUTTONS ===== */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-confirm-skip {
    background: #f39c12;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.3);
}

.btn-confirm-skip:hover {
    background: #d68910;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-confirm-take {
    background: #2ecc71;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.3);
}

.btn-confirm-take:hover {
    background: #1e8e4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-cancel-skip,
.btn-cancel-take {
    background: #95a5a6;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-skip:hover,
.btn-cancel-take:hover {
    background: #6b7b7d;
    transform: translateY(-2px);
}

/* ===== DELETE CONFIRM BUTTONS ===== */
.btn-confirm-delete {
    background: #e74c3c !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.4) !important;
}

.btn-confirm-delete:hover {
    background: #c0392b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 22px rgba(231, 76, 60, 0.5) !important;
}

.btn-cancel-delete {
    background: #95a5a6 !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(149, 165, 166, 0.3) !important;
}

.btn-cancel-delete:hover {
    background: #7f8c8d !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 22px rgba(149, 165, 166, 0.4) !important;
}

/* ===== REASON BADGE ===== */
.reason {
    display: inline-block;
    background: #fef9e7;
    color: #7d6608;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

/* ===== TELEGRAM ===== */
.telegram-box {
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.08);
    margin: 22px 0;
}

.telegram-box h3 {
    color: #00838f;
    font-size: 20px;
    margin-bottom: 16px;
}

.telegram-box .hint {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 12px;
}

.telegram-box ol {
    padding-left: 22px;
    color: #2c3e50;
}

.telegram-box ol li {
    margin: 10px 0;
    font-size: 15px;
}

.telegram-status {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 16px 0;
    background: #d5f5e3;
    color: #1a7a42;
    font-weight: 600;
    border-left: 6px solid #2ecc71;
}

.telegram-reminder {
    background: #e0f7fa;
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 6px solid #4dd0e1;
}

.telegram-reminder p {
    color: #00838f;
    margin: 0;
    font-size: 15px;
}

/* ===== ALERT / MESSAGE ===== */
.error {
    color: #b03a2e;
    background: #fadbd8;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 6px solid #e74c3c;
}

.success {
    color: #1a7a42;
    background: #d5f5e3;
    padding: 14px 18px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 6px solid #2ecc71;
}

/* ============================================================
   LANDING PAGE (INDEX & ABOUT)
   ============================================================ */
.landing-body {
    display: block;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== NAVIGATION ===== */
.landing-nav {
    background: rgba(0, 131, 143, 0.95);
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-about-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-about-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-about-btn.active {
    background: rgba(77, 208, 225, 0.5);
    border-color: #4dd0e1;
}

/* ===== DROPDOWN ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: #00838f;
    min-width: 120px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-content a {
    color: #b2ebf2;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-dropdown-content a:hover {
    background: rgba(77, 208, 225, 0.3);
    color: white;
}

.nav-dropdown-content a.active {
    background: #4dd0e1;
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #00838f 0%, #00acc1 40%, #4dd0e1 100%);
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px 200px;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    max-width: 700px;
}

.hero-main-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 56px;
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #b2ebf2;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #e0f7fa;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4dd0e1, #00acc1);
    color: white;
    padding: 16px 50px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(77, 208, 225, 0.4);
}

.hero-btn:hover {
    background: linear-gradient(135deg, #26c6da, #00838f);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(77, 208, 225, 0.5);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-body {
    display: block;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-page {
    padding-top: 100px;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 172, 193, 0.15);
}

/* ===== ABOUT HEADER ROW ===== */
.about-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #4dd0e1;
    padding-bottom: 15px;
}

.about-header-row h1 {
    font-size: 36px;
    color: #00838f;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.about-back-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4dd0e1, #00acc1);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    white-space: nowrap;
}

.about-back-btn:hover {
    background: linear-gradient(135deg, #26c6da, #00838f);
    transform: translateY(-2px);
}

.about-page-content {
    padding: 10px 0;
}

.about-section-block {
    margin-bottom: 35px;
}

.about-section-block h2 {
    font-size: 22px;
    color: #00838f;
    margin-bottom: 12px;
}

.about-section-block p {
    color: #5d6d7e;
    line-height: 1.8;
    font-size: 16px;
}

/* ===== ABOUT ADDRESS WITH LOGO ===== */
.about-address-with-logo {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.about-address-text {
    flex: 1;
    min-width: 250px;
}

.about-address-logo {
    flex-shrink: 0;
}

.about-sayang-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
}

.about-address {
    background: #e0f7fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.about-address p {
    margin: 5px 0;
}

.about-fb-link {
    color: #4dd0e1;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.about-fb-link:hover {
    color: #00acc1;
    text-decoration: underline;
}

/* ===== ABOUT GALLERY ===== */
.about-photo-intro {
    margin-bottom: 15px;
    color: #5d6d7e;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.about-gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: 0.3s;
    cursor: pointer;
}

.about-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.about-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.about-img-caption {
    padding: 10px 14px;
    font-size: 14px;
    color: #5d6d7e;
    text-align: center;
    background: #f8fafc;
    margin: 0;
    line-height: 1.5;
}

/* ===== ABOUT DEVELOPER ===== */
.about-developer {
    background: #e0f7fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #4dd0e1;
}

.about-college {
    font-size: 18px;
    color: #00838f;
    margin-top: 5px;
}

.about-college-sub {
    font-size: 14px;
    color: #5d6d7e;
    margin: 2px 0;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-modal-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ddd;
    font-size: 18px;
    font-weight: 500;
}

.image-modal-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.image-modal-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 22px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
    backdrop-filter: blur(5px);
}

.image-modal-prev {
    left: 30px;
}

.image-modal-next {
    right: 30px;
}

.image-modal-prev:hover,
.image-modal-next:hover {
    background: rgba(77, 208, 225, 0.6);
    border-color: #4dd0e1;
    transform: translateY(-50%) scale(1.1);
}

.image-modal-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* ===== FOOTER ===== */
.landing-footer {
    background: #00838f;
    color: #b2ebf2;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.footer-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.8);
}

.footer-divider {
    color: #5d6d7e;
    font-size: 18px;
}

/* ============================================================
   ADD RESIDENT - EMERGENCY CONTACT SECTION
   ============================================================ */
.emergency-section {
    grid-column: span 2;
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    border: 2px solid #b2ebf2;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 172, 193, 0.06);
}

.emergency-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f7fa;
}

.emergency-section .section-header .icon {
    font-size: 22px;
}

.emergency-section .section-header h3 {
    margin: 0;
    font-size: 17px;
    color: #00838f;
    font-weight: 700;
}

.emergency-section .section-header .required-badge {
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 30px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-section .section-desc {
    font-size: 14px;
    color: #5d6d7e;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #4dd0e1;
    line-height: 1.7;
}

.emergency-section .section-desc .highlight {
    color: #00838f;
    font-weight: 600;
}

.emergency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.emergency-grid .form-group {
    margin: 0;
}

.emergency-grid .form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #00838f;
    display: block;
    margin-bottom: 4px;
}

.emergency-grid .form-group label .required-star {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 2px;
}

.emergency-grid .form-group input,
.emergency-grid .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #b2ebf2;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.emergency-grid .form-group input:focus,
.emergency-grid .form-group select:focus {
    border-color: #4dd0e1;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.1);
}

.emergency-grid .form-group input::placeholder {
    color: #b0bec5;
    font-size: 13px;
}

.form-group.full-width {
    grid-column: span 2;
}

/* ============================================================
   ADD MEDICATION - 3 COLUMN FORM
   ============================================================ */
.form-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 25px;
    background: white;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 172, 193, 0.08);
    margin-top: 20px;
}

.form-grid-3col .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-grid-3col .form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #00838f;
    margin-bottom: 2px;
}

.form-grid-3col .form-group label .required-star {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 2px;
}

.form-grid-3col .form-group input,
.form-grid-3col .form-group select,
.form-grid-3col .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #b2ebf2;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
    box-sizing: border-box;
}

.form-grid-3col .form-group input:focus,
.form-grid-3col .form-group select:focus,
.form-grid-3col .form-group textarea:focus {
    border-color: #4dd0e1;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.1);
}

.form-grid-3col .form-group input::placeholder,
.form-grid-3col .form-group textarea::placeholder {
    color: #b0bec5;
    font-size: 13px;
}

.form-grid-3col .form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.form-grid-3col .form-group.full-width {
    grid-column: span 3;
}

.form-grid-3col .form-actions {
    grid-column: span 3;
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE - FIXES
   ============================================================ */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .form-actions {
        grid-column: span 1;
    }
    .form-grid-3col {
        grid-template-columns: 1fr 1fr;
        padding: 25px 30px;
    }
    .form-grid-3col .form-group.full-width {
        grid-column: span 2;
    }
    .form-grid-3col .form-actions {
        grid-column: span 2;
    }
    .emergency-section {
        grid-column: span 1;
    }
    .emergency-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .report-grid-large {
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
    }
    .day-circle-large {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    .day-stats-large {
        font-size: 11px;
        gap: 4px;
    }
    .day-stats-large span {
        display: block;
    }
}

@media (max-width: 768px) {
    .form-grid-3col {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    .form-grid-3col .form-group.full-width {
        grid-column: span 1;
    }
    .form-grid-3col .form-actions {
        grid-column: span 1;
        flex-direction: column;
    }
    .form-grid-3col .form-actions .btn-save,
    .form-grid-3col .form-actions .btn-cancel {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 15px;
    }
    .emergency-section {
        padding: 16px 18px;
    }
    .emergency-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .emergency-section .section-header .required-badge {
        font-size: 10px;
        padding: 1px 10px;
    }
    .emergency-section .section-desc {
        font-size: 13px;
        padding: 8px 12px;
    }
    .report-grid-large {
        grid-template-columns: repeat(4, 1fr);
    }
    .weekly-summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    .weekly-nav {
        flex-direction: column;
    }
    .weekly-nav a {
        text-align: center;
    }
    .explanation-body ul {
        padding-left: 16px;
    }
    .weekly-hint {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    .weekly-click-hint {
        font-size: 12px;
        padding: 3px 10px;
        margin-top: 4px;
    }
    .weekly-explanation {
        flex-direction: column;
        padding: 14px 16px;
    }
    .weekly-explanation-icon {
        font-size: 22px;
    }
    .weekly-explanation-text {
        font-size: 13px;
    }
    .weekly-legend {
        gap: 10px 16px;
    }
    .legend-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .form-grid-3col {
        padding: 14px;
        gap: 12px;
    }
    .form-grid-3col .form-group input,
    .form-grid-3col .form-group select,
    .form-grid-3col .form-group textarea {
        padding: 9px 12px;
        font-size: 13px;
    }
    .form-grid-3col .form-group label {
        font-size: 13px;
    }
    .emergency-section {
        padding: 12px 14px;
    }
    .emergency-section .section-header h3 {
        font-size: 15px;
    }
    .emergency-section .section-desc {
        font-size: 12px;
        padding: 6px 10px;
    }
    .emergency-grid .form-group input,
    .emergency-grid .form-group select {
        padding: 9px 12px;
        font-size: 13px;
    }
    .report-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    .weekly-summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    .summary-number {
        font-size: 24px;
    }
    .weekly-explanation-full {
        padding: 15px 16px;
    }
    .explanation-header h2 {
        font-size: 17px;
    }
    .explanation-body ul li {
        font-size: 13px;
    }
    .weekly-details {
        padding: 15px 12px;
    }
    .day-circle-large {
        width: 45px;
        height: 45px;
        font-size: 13px;
    }
    .weekly-hint .hint-text {
        font-size: 13px;
    }
    .weekly-explanation {
        padding: 12px 14px;
    }
    .weekly-explanation-text ul {
        padding-left: 14px;
    }
    .weekly-explanation-text ul li {
        font-size: 12px;
    }
    .weekly-legend {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .legend-item {
        font-size: 12px;
    }
}

/* ============================================================
   FORCE STATUS COLORS - Active Green / Inactive Red
   ============================================================ */
.status,
.status-badge,
td .status,
td .status-badge,
span.status,
span.status-badge {
    display: inline-block !important;
    padding: 5px 16px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}
.status.active,
.status-badge.active,
td .status.active,
td .status-badge.active,
span.status.active,
span.status-badge.active {
    background: #d5f5e3 !important;
    color: #1a7a42 !important;
}
.status.inactive,
.status-badge.inactive,
td .status.inactive,
td .status-badge.inactive,
span.status.inactive,
span.status-badge.inactive {
    background: #fadbd8 !important;
    color: #b03a2e !important;
}

/* ============================================================
   ★★★ MOBILE OPTIMIZATION (手机版统一标准) ★★★
   ============================================================ */

@media (max-width: 576px) {
    /* ===== 手机版按钮统一 ===== */
    .main .btn,
    .main button,
    .main .btn-add,
    .main .btn-edit,
    .main .btn-delete,
    .main .btn-report,
    .main .btn-take,
    .main .btn-skip,
    .main .btn-save,
    .main .btn-cancel {
        min-height: 40px;
        font-size: 14px;
    }
    
    /* ===== 顶部小按钮（back / language / about）统一小 ===== */
    .back-button,
    .nav-dropdown-btn,
    .nav-about-btn,
    .about-back-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
    }
    
    /* ===== 表单字段统一 ===== */
    input, select, textarea {
        font-size: 16px !important;   /* 防 iOS 自动放大 */
    }
    
    /* ===== 表格字号统一 ===== */
    table {
        font-size: 13px;
    }
    th, td {
        padding: 10px 8px !important;
    }
    
    /* ===== 卡片统一 ===== */
    .cards {
        gap: 10px;
    }
    
    /* ===== 主内容底部留白，防被 tab bar 挡 ===== */
    .main {
        padding-bottom: 90px !important;
    }
    
    /* ===== 卡片式表格（手机） ===== */
    .table-wrapper table.mobile-card,
    .table-wrapper table.mobile-card thead,
    .table-wrapper table.mobile-card tbody,
    .table-wrapper table.mobile-card tr,
    .table-wrapper table.mobile-card td {
        display: block;
        width: 100%;
    }
    .table-wrapper table.mobile-card thead {
        display: none;
    }
    .table-wrapper table.mobile-card tr {
        background: white;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 12px 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        border-left: 4px solid #4dd0e1;
    }
    .table-wrapper table.mobile-card td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0 !important;
        border: none;
        border-bottom: 1px solid #f0f2f4;
        font-size: 13px;
    }
    .table-wrapper table.mobile-card td:last-child {
        border-bottom: none;
    }
    .table-wrapper table.mobile-card td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #00838f;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    /* ===== Login 页手机版：让内容更舒适 ===== */
    .login-box {
        padding: 30px 22px !important;
        width: 92% !important;
        max-width: 380px !important;
    }
    .login-box .login-logo {
        width: 170px !important;
        margin-bottom: 6px !important;
    }
    .login-box .login-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    .login-box input {
        padding: 13px 15px !important;
        font-size: 15px !important;
        margin: 8px 0 !important;
    }
    .login-box button[type="submit"],
    .login-box .btn-forgot,
    .login-box .btn-apply {
        padding: 13px !important;
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
    .login-box .apply-info {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}