/* IntelliCollection - Custom Styles */

:root {
    --brand-color: #006a60;
    --brand-hover: #005550;
    --brand-light: rgba(0, 106, 96, 0.1);
    --sidebar-width: 250px;
    --header-height: 56px;
}

/* Brand Colors */
.bg-brand {
    background-color: var(--brand-color) !important;
}

.text-brand {
    color: var(--brand-color) !important;
}

.btn-brand {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

.btn-brand:hover {
    background-color: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #fff;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-inner {
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--brand-color);
}

.sidebar .nav-link.active {
    color: var(--brand-color);
    background-color: var(--brand-light);
    border-left-color: var(--brand-color);
    font-weight: 600;
}

.sidebar .nav-link.disabled {
    color: #adb5bd;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    min-height: 100vh;
    background-color: #f5f6fa;
}

/* Login Page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f6fa;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-logo {
    font-size: 3rem;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
}

/* Stat Cards */
.stat-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid transparent !important;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
}

.stat-card-brand  { border-top-color: var(--brand-color) !important; }
.stat-card-info   { border-top-color: #0dcaf0 !important; }
.stat-card-success{ border-top-color: #198754 !important; }
.stat-card-warning{ border-top-color: #ffc107 !important; }
.stat-card-purple { border-top-color: #6f42c1 !important; }
.stat-card-danger { border-top-color: #dc3545 !important; }
.stat-card-orange { border-top-color: #fd7e14 !important; }
.stat-card-teal   { border-top-color: var(--brand-color) !important; }

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: #212529;
    line-height: 1.1;
}

.stat-sub {
    font-size: 0.78rem;
    color: #adb5bd;
}

/* Larger stat icon */
.stat-icon-lg {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Legacy small icon (kept for other pages) */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bg-brand-light   { background-color: var(--brand-light); }
.bg-success-light { background-color: rgba(25, 135, 84, 0.1); }
.bg-info-light    { background-color: rgba(13, 202, 240, 0.1); }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1); }
.bg-danger-light  { background-color: rgba(220, 53, 69, 0.1); }
.bg-purple-light  { background-color: rgba(111, 66, 193, 0.1); }
.bg-orange-light  { background-color: rgba(253, 126, 20, 0.1); }

.text-purple { color: #6f42c1 !important; }
.text-orange { color: #fd7e14 !important; }

/* Table Styles */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .sidebar-overlay.show {
        display: block;
    }
}
