/* Global Styles */
:root {
    --primary-color: #1b6b93;
    --secondary-color: #2a9d5e;
    --danger-color: #c0392b;
    --warning-color: #e68a2e;
    --dark-bg: #0b2b3f;
    --light-bg: #f4f7fc;
    --text-dark: #113946;
    --text-light: #4c6f84;
    --border-color: #dae6ef;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    color: #d1e0eb;
    position: fixed;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-logo {
    padding: 20px 18px;
    border-bottom: 1px solid #1f4a62;
}

.sidebar-logo h2 {
    font-weight: 500;
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.sidebar-logo span {
    font-size: 0.75rem;
    color: #88b8d0;
}

.sidebar-menu {
    padding: 10px 0;
}

.menu-section {
    margin: 2px 0;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #cbdbe6;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.menu-header:hover {
    background: #1b4055;
}

.menu-header i {
    width: 24px;
    font-size: 1.1rem;
    color: #6fa9c7;
}

.menu-header .chevron {
    font-size: 0.8rem;
    color: #8bb4cc;
    transition: transform 0.2s;
}

.menu-header .chevron.rotate {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #08212f;
    padding-left: 42px;
}

.submenu.show {
    max-height: 500px;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #b8d3e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.submenu-link i {
    width: 18px;
    font-size: 0.9rem;
    color: #75a9c9;
}

.submenu-link:hover,
.submenu-link.active {
    background: #1e506b;
    color: white;
}

/* Main Content Area */
main {
    margin-left: 280px;
    padding: 20px !important;
    min-height: calc(100vh - 60px);
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0, 30, 50, 0.08);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: white;
    border-bottom: 1px dashed #bbd4e3;
    padding: 20px 24px;
    font-weight: 500;
    color: var(--primary-color);
    border-radius: 24px 24px 0 0 !important;
}

/* Form Styles */
.form-control,
.form-select {
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 107, 147, 0.25);
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

/* Button Styles */
.btn {
    border-radius: 40px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 10px -4px #98c2d9;
}

.btn-primary:hover {
    background: #155a7a;
}

.btn-success {
    background: var(--secondary-color);
    border: none;
}

.btn-danger {
    background: var(--danger-color);
    border: none;
}

.btn-warning {
    background: var(--warning-color);
    border: none;
    color: white;
}

.btn-outline-secondary {
    background: white;
    color: var(--primary-color);
    border: 1.5px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #e6f0f8;
    border-bottom: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e1edf7;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-success {
    background: #d4f0d4;
    color: #1f6e4a;
}

.badge-warning {
    background: #fff0cf;
    color: #b15800;
}

.badge-danger {
    background: #ffe0e0;
    color: #c0392b;
}

/* Status Indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-active {
    background: var(--secondary-color);
}

.status-inactive {
    background: var(--danger-color);
}

.status-pending {
    background: var(--warning-color);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-left: 5px solid;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 40px;
    background: #ddecf5;
}

.progress-bar {
    background: var(--primary-color);
    border-radius: 40px;
}

/* Alert Styles */
.alert {
    border-radius: 16px;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        left: -280px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    main {
        margin-left: 0;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* Document Upload */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background: #f9fcff;
    cursor: pointer;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f7fd;
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
}
