body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
    overflow-x: hidden;
}

.login-page {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 100vh;
    display: none;
}

.login-card {
    border-radius: 16px;
}

.login-card .logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.login-card .logo-icon i {
    line-height: 1;
}

.login-card .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.login-card .input-group-text {
    background: #f8f9fa;
    border-right: none;
}

.login-card .form-control {
    border-left: none;
}

.login-card .form-control:focus + .input-group-text,
.login-card .input-group:focus-within .input-group-text {
    border-color: #0d6efd;
}

.login-card .btn-primary {
    border-radius: 8px;
    transition: all 0.2s;
}

.login-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#sidebar {
    width: 250px;
    min-width: 250px;
    background: #1a1a2e;
    color: #fff;
    transition: margin-left 0.3s;
    z-index: 1000;
}

.sidebar-header {
    background: rgba(255, 255, 255, 0.05);
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

#sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

#sidebar .nav-link.active {
    color: #fff;
    background: rgba(13, 110, 253, 0.2);
    border-left-color: #0d6efd;
}

#sidebar hr {
    opacity: 0.15;
}

#pageContentWrapper {
    flex: 1;
    min-width: 0;
    transition: margin-left 0.3s;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
}

.stat-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card .card-body {
    padding: 1rem 1.25rem;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
}

.card-header .fw-semibold {
    font-size: 0.9rem;
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.12);
}

.service-card:active {
    transform: scale(0.98);
}

.cursor-pointer {
    cursor: pointer;
}

.table > :not(caption) > * > * {
    padding: 0.75rem 0.75rem;
    vertical-align: middle;
}

.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
}

.btn-sm {
    border-radius: 6px;
}

.form-control, .form-select {
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-radius: 16px 16px 0 0;
}

.modal-footer {
    border-radius: 0 0 16px 16px;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
}

.list-group-item {
    border-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        margin-left: -250px;
    }

    #sidebar.show {
        margin-left: 0;
    }

    #pageContentWrapper {
        width: 100%;
    }
}

@media print {
    #sidebar, .topbar, .no-print {
        display: none !important;
    }

    #pageContentWrapper {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
