/* ========== STYLE.CSS - Complete Responsive Stylesheet ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f1f5f9;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 260px;
    background: #ffffff;
    color: #334155;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.06);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f8fafc;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.sidebar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0b1e33;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0.5rem;
}

.sidebar-brand i {
    color: #2563eb;
    background: #dbeafe;
    padding: 0.45rem;
    border-radius: 10px;
    font-size: 1.1rem;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-nav a:hover {
    background: #f1f5f9;
    color: #0b1e33;
    padding-left: 1.3rem;
}

.sidebar-nav a.active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.sidebar-nav a.active i {
    color: #2563eb;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.sidebar-nav a:hover i {
    color: #2563eb;
}

.sidebar-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.2rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

.sidebar-footer a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    transition: 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
}

.sidebar-footer a:hover {
    color: #b91c1c;
    background: #fee2e2;
}

.sidebar-footer a:hover i {
    color: #b91c1c;
}

/* ========== SIDEBAR TOGGLE BUTTON ========== */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    color: #0b1e33;
    font-size: 1.2rem;
    transition: background 0.2s;
    line-height: 1;
}

.sidebar-toggle:hover {
    background: #f1f5f9;
}

/* ========== SIDEBAR OVERLAY ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 30, 51, 0.35);
    backdrop-filter: blur(2px);
    z-index: 99;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
    background: white;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9edf2;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-left h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b1e33;
    white-space: nowrap;
}

.header-left h2 i {
    color: #2563eb;
    margin-right: 0.5rem;
}

.header-left span {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-right .user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 0.3rem 1rem 0.3rem 0.8rem;
    border-radius: 40px;
}

.header-right .user i {
    background: #0b1e33;
    color: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right .user span {
    font-weight: 500;
    font-size: 0.8rem;
    color: #0b1e33;
}

.logout-btn {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.logout-btn:hover {
    background: #fecaca;
    transform: scale(0.95);
}

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 2rem 2.5rem;
    flex: 1;
}

/* ========== FOOTER ========== */
.footer {
    background: white;
    border-top: 1px solid #e9edf2;
    padding: 1rem 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-left i {
    color: #2563eb;
}

.footer-separator {
    color: #d1d9e6;
    margin: 0 0.3rem;
}

/* ========== KPI CARDS ========== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.kpi-card {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid #e9edf2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: 0.2s;
}

.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.kpi-card .label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kpi-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1e33;
    margin-top: 4px;
}

.kpi-card .value.money {
    font-size: 1.28rem;
}

/* ========== ADMIN PANEL ========== */
.admin-panel {
    background: white;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    border: 1px solid #e9edf2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-header h3 {
    font-weight: 600;
    color: #0b1e33;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.admin-header h3 i {
    color: #2563eb;
}

.add-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.8rem;
}

.add-btn:hover {
    background: #1d4ed8;
    transform: scale(0.95);
}

.add-btn i {
    font-size: 0.9rem;
}

.danger-btn {
    background: #b91c1c;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.78rem;
}

.danger-btn:hover {
    background: #991b1b;
    transform: scale(0.95);
}

/* ========== TABLE ========== */
.table-responsive {
    overflow-x: auto;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 1200px;
}

th {
    text-align: left;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    font-weight: 600;
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #ecf1f6;
    color: #1e293b;
    vertical-align: middle;
}

tr:hover {
    background: #f8fafc;
}

.actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 30px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.actions button:hover {
    transform: scale(1.1);
}

.edit-btn {
    color: #2563eb;
}

.edit-btn:hover {
    background: #dbeafe;
}

.delete-btn {
    color: #b91c1c;
}

.delete-btn:hover {
    background: #fee2e2;
}

.empty-row td {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
    font-style: italic;
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    max-width: 600px;
    width: 95%;
    padding: 2rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: fadeUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-thumb {
    background: #d1d9e6;
    border-radius: 10px;
}

.modal h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1e33;
}

.modal h3 i {
    color: #2563eb;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.2rem;
}

.form-group {
    margin-bottom: 0.4rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.75rem;
    color: #334155;
    display: block;
    margin-bottom: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #d1d9e6;
    border-radius: 12px;
    font-size: 0.9rem;
    background: #fafcff;
    transition: 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* ========== FORM SELECT DROPDOWN STYLING ========== */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    cursor: pointer;
    padding-right: 2.5rem;
}

.form-group select:hover {
    border-color: #2563eb;
}

.form-group select option {
    padding: 0.5rem;
    background: white;
    color: #0b1e33;
}

.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== CURRENCY SYMBOL INPUT ========== */
.currency-symbol {
    position: relative;
}

.currency-symbol input {
    padding-left: 2.8rem !important;
}

.currency-symbol span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    pointer-events: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9edf2;
}

.btn-cancel {
    background: #e9edf2;
    color: #334155;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel:hover {
    background: #dce2ea;
}

.btn-save {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save:hover {
    background: #1d4ed8;
    transform: scale(0.95);
}

/* ========== DAILY ENTRY SPECIFIC ========== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e9edf2;
}

.summary-card .label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b1e33;
    margin-top: 4px;
}

.entry-form {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid #e9edf2;
    margin-bottom: 2rem;
}

.entry-form h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b1e33;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-form h3 i {
    color: #2563eb;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hint {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 3px;
}

.submit-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.7rem 2.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: scale(0.95);
}

.message {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #166534;
}

.message.error {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #b91c1c;
}

.message i {
    font-size: 1.2rem;
}

.table-container {
    background: white;
    border-radius: 24px;
    padding: 1.5rem 2rem;
    border: 1px solid #e9edf2;
}

.table-container h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0b1e33;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-container h4 i {
    color: #2563eb;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-asset { background: #dbeafe; color: #1d4ed8; }
.badge-liability { background: #fce7f3; color: #be185d; }
.badge-equity { background: #d1fae5; color: #065f46; }
.badge-revenue { background: #fef3c7; color: #92400e; }
.badge-expense { background: #fee2e2; color: #b91c1c; }
.badge-committee { background: #e0f2fe; color: #0369a1; }
.badge-purchase { background: #dbeafe; color: #1d4ed8; }
.badge-salary { background: #fce7f3; color: #be185d; }
.badge-sale { background: #d1fae5; color: #065f46; }
.badge-recovery { background: #fef3c7; color: #92400e; }
.badge-transfer { background: #e0e7ff; color: #4338ca; }
.badge-owner_balance { background: #fef3c7; color: #92400e; }

/* ========== LOGIN PAGE ========== */
body.login-page {
    background: linear-gradient(135deg, #0b1e33 0%, #1a3a5c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin: 0;
}

.login-container {
    background: white;
    border-radius: 32px;
    padding: 2.5rem 2.8rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.4s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 2.8rem;
    color: #2563eb;
    background: #dbeafe;
    padding: 0.8rem;
    border-radius: 20px;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1e33;
    margin-top: 0.8rem;
}

.login-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-icon input {
    padding-left: 2.6rem;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-btn:hover {
    background: #1d4ed8;
    transform: scale(0.98);
}

.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #b91c1c;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #e9edf2;
    padding-top: 1.2rem;
}

.demo-creds {
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.5rem;
}

.demo-creds code {
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.15rem 0.8rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-left h2 {
        font-size: 1.1rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Sidebar becomes collapsible */
    .sidebar {
        width: 72px;
        padding: 1.2rem 0.6rem;
    }
    
    .sidebar-brand {
        justify-content: center;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .sidebar-brand span {
        display: none;
    }
    
    .sidebar-brand i {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 0.75rem;
        gap: 0;
    }
    
    .sidebar-nav a span {
        display: none;
    }
    
    .sidebar-nav a i {
        font-size: 1.15rem;
        width: auto;
    }
    
    .sidebar-nav a:hover {
        padding-left: 0.75rem;
    }
    
    .sidebar-footer a {
        justify-content: center;
        padding: 0.6rem;
    }
    
    .sidebar-footer a span {
        display: none;
    }
    
    .main-content {
        margin-left: 72px;
        max-width: calc(100vw - 72px);
    }
    
    .header {
        padding: 0.8rem 1.2rem;
    }
    
    .page-content {
        padding: 1.2rem;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .kpi-card .value {
        font-size: 1.4rem;
    }

    .kpi-card .value.money {
        font-size: 1.05rem;
    }
    
    .admin-panel {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-header h3 {
        font-size: 1rem;
    }
    
    .add-btn {
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .danger-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.9rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .entry-form {
        padding: 1.2rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .summary-card .value {
        font-size: 1.2rem;
    }
    
    .table-container {
        padding: 1rem;
    }
    
    .modal {
        padding: 1.2rem;
        width: 95%;
    }
    
    .modal h3 {
        font-size: 1.2rem;
    }
    
    .header-left h2 {
        font-size: 1rem;
    }
    
    .header-left span {
        font-size: 0.65rem;
        padding: 0.15rem 0.7rem;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn i {
        font-size: 1.2rem;
    }
}

/* Mobile Phones */
@media (max-width: 640px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 280px;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    }

    /* Restore text labels in mobile drawer */
    .sidebar-brand {
        justify-content: flex-start;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .sidebar-brand span {
        display: inline;
        font-size: 1.4rem;
    }
    
    .sidebar-brand i {
        font-size: 1rem;
        padding: 0.45rem;
    }
    
    .sidebar-nav a {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        gap: 14px;
    }
    
    .sidebar-nav a span {
        display: inline;
    }
    
    .sidebar-nav a i {
        width: 20px;
        font-size: 1rem;
    }
    
    .sidebar-nav a:hover {
        padding-left: 1.3rem;
    }
    
    .sidebar-footer a {
        justify-content: flex-start;
        padding: 0.6rem 1rem;
        gap: 8px;
    }
    
    .sidebar-footer a span {
        display: inline;
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .login-container {
        padding: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-separator {
        display: none;
    }
    
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .header-left {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-left h2 {
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .kpi-card {
        padding: 0.8rem 1rem;
    }
    
    .kpi-card .value {
        font-size: 1.2rem;
    }

    .kpi-card .value.money {
        font-size: 0.95rem;
    }
    
    .kpi-card .label {
        font-size: 0.65rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-panel {
        padding: 0.8rem;
        border-radius: 16px;
    }
    
    .page-content {
        padding: 0.8rem;
    }
    
    .modal {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .form-grid {
        gap: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-cancel,
    .btn-save {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table-responsive {
        margin: 0 -0.5rem;
    }
    
    th, td {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .actions button {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
    
    .entry-form {
        padding: 0.8rem;
        border-radius: 16px;
    }
    
    .entry-form h3 {
        font-size: 1rem;
    }
    
    .table-container {
        padding: 0.8rem;
        border-radius: 16px;
    }
    
    .table-container h4 {
        font-size: 0.9rem;
    }
    
    .currency-symbol input {
        padding-left: 2.2rem !important;
    }
    
    .currency-symbol span {
        font-size: 0.7rem;
        left: 8px;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .filter-section { display: none; }
    .sidebar { display: none; }
    .header { display: none; }
    .main-content { margin-left: 0; }
    .page-content { padding: 0; }
    .footer { display: none; }
    .admin-header .add-btn { display: none; }
    .actions { display: none; }
}