/* Dashboard Specific Styles */

/* Header Section */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Role Selector Tabs - Segmented Control Style */
.role-tabs-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.role-tabs-container {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 4px; /* Scrollbar space if needed */
}

/* Scrollbar hiding for cleaner look */
.role-tabs-container::-webkit-scrollbar {
    height: 4px;
}
.role-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.role-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
    color: var(--text-secondary);
}

.role-tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.role-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.role-tab-btn.active span {
    color: white; /* Ensure icons are white */
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.dashboard-col {
    grid-column: span 6; /* 2 Columns on Desktop */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .dashboard-col {
        grid-column: span 12; /* Stack on Tablet/Mobile */
    }
}

/* Glass Card Refinements */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Appointments & List Items */
.list-item-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}
.list-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.confirmed { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #ffedd5; color: #9a3412; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }

/* Chat Widget Specifics */
.chat-row {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-row:hover {
    background: #f9fafb;
}
.chat-row:last-child {
    border-bottom: none;
}
