body {
    background-color: #f4f6f9;
}
.sidebar-top {
    background: linear-gradient(90deg, #1e3a5f, #2c5282);
}
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}
.stat-card {
    color: #fff;
    border-radius: 12px;
}
.stat-card.bg-pending { background: linear-gradient(135deg,#f59e0b,#d97706); }
.stat-card.bg-process { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.stat-card.bg-resolved { background: linear-gradient(135deg,#10b981,#059669); }
.stat-card.bg-total { background: linear-gradient(135deg,#6366f1,#4f46e5); }
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
}
.login-card {
    border-radius: 16px;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
}
.badge-pending { background-color: #f59e0b; }
.badge-process { background-color: #3b82f6; }
.badge-resolved { background-color: #10b981; }
.token-box {
    background: #eef2ff;
    border: 1px dashed #4f46e5;
    border-radius: 10px;
    padding: 16px;
}
table.table thead {
    background-color: #1e3a5f;
    color: #fff;
}

.login-split-wrapper {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}
.login-split-image {
    flex: 1 1 50%;
    min-height: 100vh;
    background-color: #16273d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.login-split-image img {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.login-split-form {
    flex: 1 1 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    padding: 2rem 1.5rem;
}
.login-form-inner {
    width: 100%;
    max-width: 380px;
}

/* Vertical Sidebar Layout */
#wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}
#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    transition: margin .25s ease-out;
}
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

@media (max-width: 768px) {
    .login-split-image {
        min-height: 150px;
        flex-basis: 100%;
    }
    .login-split-image img {
        height: 150px;
        max-width: 100%;
    }
    .login-split-form {
        min-height: auto;
        flex-basis: 100%;
        padding: 2.5rem 1.5rem;
    }

    #sidebar-wrapper {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1050;
        height: 100vh;
        margin-left: -250px;
        transition: margin 0.3s ease-out;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
        box-shadow: 4px 0 15px rgba(0,0,0,0.5);
    }
}

/* Print Styles */
@media print {
    @page {
        size: landscape;
    }
    #sidebar-wrapper, 
    nav.navbar, 
    .d-print-none, 
    .btn, 
    form, 
    #newCaseModal {
        display: none !important;
    }
    #page-content-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .card {
        box-shadow: none !important;
        border: none !important;
    }
    body {
        background-color: #fff !important;
    }
    .table-responsive {
        overflow: visible !important;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    table th, table td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        text-align: left !important;
        color: #000 !important;
        word-wrap: break-word !important;
    }
    table th {
        background-color: #f1f1f1 !important;
    }
}