/* ============================================================
   Lawyers Access Portal - Main Stylesheet
   ============================================================ */

:root {
    --sidebar-width: 260px;
    --primary-dark: #1a1f36;
    --primary-accent: #4f46e5;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --info-blue: #3b82f6;
}

/* Layout */
.wrapper {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    background: var(--primary-dark) !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar Navigation */
.sidebar-nav .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    margin-bottom: 2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

.sidebar-nav .nav-link.active {
    background: rgba(79, 70, 229, 0.3) !important;
    color: #fff !important;
    font-weight: 500;
}

.sidebar-nav .nav-link .badge {
    font-size: 0.65rem;
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Compliance Status Colors */
.compliance-on-track { border-left: 4px solid var(--success-green); }
.compliance-at-risk { border-left: 4px solid var(--warning-yellow); }
.compliance-non-compliant { border-left: 4px solid var(--danger-red); }
.compliance-completed { border-left: 4px solid var(--info-blue); }

/* Alert Feed */
.alert-feed-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.alert-feed-item:hover {
    background: #f9fafb;
}

.alert-feed-item.unread {
    background: #eff6ff;
    border-left: 3px solid var(--primary-accent);
}

/* Tables */
.table-portal {
    font-size: 0.875rem;
}

.table-portal th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.table-portal td {
    vertical-align: middle;
    padding: 0.75rem;
}

.table-portal tbody tr:hover {
    background: #f9fafb;
}

/* Client Profile */
.profile-section {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d3561 100%);
}

.login-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-logo i {
    font-size: 3rem;
    color: var(--primary-accent);
}

.login-card .login-logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0.5rem;
}

.login-card .login-logo p {
    font-size: 0.85rem;
    color: #6b7280;
}

.login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.login-features .feature-item i {
    color: var(--primary-accent);
}

/* Vault Section */
.vault-category-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.vault-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.vault-resource-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.vault-resource-item:hover {
    border-color: var(--primary-accent);
    background: #f9fafb;
}

/* Charts placeholder */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .content-area {
        padding: 0 !important;
    }
}
