/* portal-theme.css - Premium Dashboard Theme */
:root {
    --sidebar-bg: #1E3A5F;
    --sidebar-text: #ffffff;
    --sidebar-active: #F99B39;
    --main-bg: #F4F7FA;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --primary-color: #F99B39;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
}

html {
    font-size: 15px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    display: flex;
    /* Sidebar Layout */
    min-height: 100vh;
}

/* Sidebar structure */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    border-left-color: var(--primary-color);
    color: white;
}

.sidebar-link i {
    width: 25px;
    margin-right: 10px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    cursor: pointer;
}

.logout-link:hover {
    color: var(--danger-color);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    /* Match sidebar width */
    padding: 0;
    width: calc(100% - 260px);
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Dashboard Content */
.dashboard-container {
    padding: 20px 28px 28px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Cards & Tables */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Subtle premium shadow */
    padding: 24px;
    margin-bottom: 24px;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.premium-table th {
    background: #F9FAFB;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.premium-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    vertical-align: middle;
}

.premium-table tr:hover td {
    background: #F9FAFB;
}

/* Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-new {
    background: #FEF3C7;
    color: #92400E;
}

.badge-assigned {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.badge-cancelled {
    background: #F3F4F6;
    color: #374151;
}

/* Buttons */
.btn-premium {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(249, 155, 57, 0.3);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 155, 57, 0.4);
}

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

/* Mobile Responsive */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu-btn {
        display: block;
        margin-right: 15px;
    }
}