/* Mile High Compliance - Custom Styles */

/* =====================
   CSS Variables
   ===================== */
:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 60px;
    --navbar-height: 60px;
    /* Mile High Compliance Brand Colors */
    --mhc-navy: #2B3A8C;
    --mhc-navy-dark: #1E2A6E;
    --mhc-navy-light: #3D4BA0;
    --primary-color: #2B3A8C;
    --primary-hover: #1E2A6E;
    --sidebar-bg: #2B3A8C;
    --sidebar-text: rgba(255, 255, 255, 0.7);
    --sidebar-text-hover: #fff;
}

/* =====================
   Layout
   ===================== */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#content {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
}

#content.active {
    width: 100%;
    margin-left: 0;
}

main {
    flex: 1;
}

/* =====================
   Sidebar
   ===================== */
#sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all 0.3s;
    overflow-y: auto;
}

#sidebar.active {
    margin-left: calc(-1 * var(--sidebar-width));
}

#sidebar .sidebar-header {
    padding: 15px;
    background: var(--mhc-navy-dark);
    text-align: center;
}

#sidebar .sidebar-brand {
    display: block;
    text-decoration: none;
}

#sidebar .sidebar-logo {
    max-width: 140px;
    height: auto;
}

#sidebar .sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
}

#sidebar ul.components {
    padding: 10px 0;
}

#sidebar ul li {
    font-size: 0.9rem;
}

#sidebar ul li a {
    padding: 10px 20px;
    display: block;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
}

#sidebar ul li a:hover,
#sidebar ul li.active > a {
    color: var(--sidebar-text-hover);
    background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#sidebar .sidebar-divider {
    padding: 10px 20px;
    margin-top: 10px;
}

/* =====================
   Bootstrap Overrides
   ===================== */
.btn-primary {
    background-color: var(--mhc-navy);
    border-color: var(--mhc-navy);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--mhc-navy-dark);
    border-color: var(--mhc-navy-dark);
}

.btn-outline-primary {
    color: var(--mhc-navy);
    border-color: var(--mhc-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--mhc-navy);
    border-color: var(--mhc-navy);
    color: #fff;
}

a {
    color: var(--mhc-navy);
}

a:hover {
    color: var(--mhc-navy-dark);
}

.text-primary {
    color: var(--mhc-navy) !important;
}

.bg-primary {
    background-color: var(--mhc-navy) !important;
}

.border-primary {
    border-color: var(--mhc-navy) !important;
}

.nav-link.active,
.nav-pills .nav-link.active {
    background-color: var(--mhc-navy);
}

.page-link {
    color: var(--mhc-navy);
}

.page-item.active .page-link {
    background-color: var(--mhc-navy);
    border-color: var(--mhc-navy);
}

/* =====================
   Cards
   ===================== */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* =====================
   Stats Cards
   ===================== */
.stat-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--mhc-navy), var(--mhc-navy-dark));
    color: #fff;
}

.stat-card.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-card.danger {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

.stat-card.success {
    background: linear-gradient(135deg, #198754, #146c43);
}

.stat-card.info {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* =====================
   DataTables
   ===================== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

/* =====================
   Status Badges
   ===================== */
.badge-status {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* =====================
   Forms
   ===================== */
.form-label {
    font-weight: 500;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* =====================
   Page Header
   ===================== */
.page-header {
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* =====================
   Notifications
   ===================== */
.notification-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-badge {
    font-size: 0.65rem;
}

/* =====================
   Quick Actions
   ===================== */
.quick-action-btn {
    padding: 1rem;
    text-align: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.quick-action-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* =====================
   Timeline
   ===================== */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

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

    #content {
        width: 100%;
        margin-left: 0;
    }

    #content.active {
        margin-left: var(--sidebar-width);
    }
}

/* =====================
   Print Styles
   ===================== */
@media print {
    #sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    #content {
        width: 100% !important;
        margin: 0 !important;
    }

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