/* Session Manager Styles - Homepage Color Palette */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Homepage color palette */
    --ink-900: #1B1F3B;
    --ink-700: #303A76;
    --pine-900: #1E3A3A;
    --gold-500: #D4A017;
    --ivory-100: #F5F5F0;
    --slate-300: #A8B2C3;
    
    /* Shadows */
    --shadow-soft: 0 8px 32px rgba(27,31,59,0.25);
    --shadow-glow: 0 0 12px rgba(212,160,23,0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ivory-100);
    line-height: 1.6;
    min-height: 100vh;
    
    /* Gradient background from homepage */
    background-color: var(--ink-900);
    background-image: linear-gradient(135deg, #1B1F3B 0%, #1E3A3A 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--ivory-100);
}

/* Layout */
.hub-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Glass effect */
.hub-header {
    background: linear-gradient(180deg, rgba(245,245,240,0.05), rgba(245,245,240,0.03));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245,245,240,0.10);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hub-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ivory-100);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: var(--slate-300);
}

/* Main Content Grid */
.hub-content {
    flex: 1;
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* Cards - Glass morphism */
.card {
    background: linear-gradient(180deg, rgba(245,245,240,0.05), rgba(245,245,240,0.03));
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245,245,240,0.12);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 150ms ease-out;
}

.card:hover {
    border-color: rgba(245,245,240,0.18);
    filter: brightness(1.03);
}

.card:last-child {
    margin-bottom: 0;
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ivory-100);
    position: relative;
}

/* Gold underline for section headers */
.card h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--gold-500);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ivory-100);
}

/* Filter Tabs - Gold active state */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(245,245,240,0.15);
    border-radius: 6px;
    color: var(--slate-300);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 150ms ease-out;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    border-color: rgba(245,245,240,0.25);
    color: var(--ivory-100);
}

.tab-btn.active {
    background: rgba(212,160,23,0.15);
    border-color: rgba(212,160,23,0.30);
    color: var(--gold-500);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 150ms ease-out;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--ink-700);
    color: var(--ivory-100);
    border: 1px solid rgba(245,245,240,0.10);
}

.btn-primary:hover {
    border-color: rgba(245,245,240,0.20);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--slate-300);
    border: 1px solid rgba(245,245,240,0.20);
}

.btn-secondary:hover {
    border-color: rgba(245,245,240,0.30);
    color: var(--ivory-100);
}

.btn-success {
    background: var(--ink-700);
    color: var(--ivory-100);
    border: 1px solid rgba(245,245,240,0.10);
}

.btn-success:hover {
    border-color: rgba(245,245,240,0.20);
    box-shadow: var(--shadow-glow);
}

.btn-danger {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.30);
}

.btn-danger:hover {
    background: rgba(239,68,68,0.25);
    border-color: rgba(239,68,68,0.40);
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

/* Session Cards */
.session-card {
    background: linear-gradient(180deg, rgba(245,245,240,0.06), rgba(245,245,240,0.04));
    border: 1px solid rgba(245,245,240,0.12);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 150ms ease-out;
}

.session-card:hover {
    border-color: rgba(245,245,240,0.20);
    box-shadow: 0 0 12px rgba(212,160,23,0.08);
}

.session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.session-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.session-avatar {
    flex-shrink: 0;
}

.session-avatar .avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(245,245,240,0.15);
    background: rgba(245,245,240,0.04);
}

.session-title {
    flex: 1;
}

.session-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--ivory-100);
}

.session-meta {
    font-size: 0.75rem;
    color: var(--slate-300);
    font-family: 'Inter', sans-serif;
}

.session-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Badges with homepage palette */
.criteria-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.criteria-badge.dsm {
    background: rgba(212,160,23,0.15);
    color: var(--gold-500);
    border: 1px solid rgba(212,160,23,0.25);
}

.criteria-badge.age {
    background: rgba(245,245,240,0.08);
    color: var(--slate-300);
    border: 1px solid rgba(245,245,240,0.15);
}

.criteria-badge.gender {
    background: rgba(245,245,240,0.08);
    color: var(--slate-300);
    border: 1px solid rgba(245,245,240,0.15);
}

.criteria-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.criteria-tag.gender,
.criteria-tag.age {
    background: rgba(245,245,240,0.08);
    color: var(--slate-300);
    border: 1px solid rgba(245,245,240,0.15);
}

.criteria-tag.dsm {
    background: rgba(212,160,23,0.15);
    color: var(--gold-500);
    border: 1px solid rgba(212,160,23,0.25);
}

.session-status {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background: rgba(212,160,23,0.15);
    color: var(--gold-500);
    border: 1px solid rgba(212,160,23,0.25);
}

.status-completed {
    background: rgba(168,178,195,0.15);
    color: var(--slate-300);
    border: 1px solid rgba(168,178,195,0.25);
}

.session-stats {
    padding: 0.75rem;
    background: rgba(245,245,240,0.04);
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--ivory-100);
}

.session-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.session-actions .btn {
    flex: 1;
}

/* Scenarios */
.scenarios-list {
    color: var(--slate-300);
    font-size: 0.875rem;
}

.scenario-item {
    background: rgba(245,245,240,0.04);
    border: 1px solid rgba(245,245,240,0.12);
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 150ms ease-out;
}

.scenario-item:hover {
    border-color: rgba(212,160,23,0.30);
    box-shadow: 0 0 12px rgba(212,160,23,0.08);
}

.scenario-item h4 {
    font-size: 0.938rem;
    margin-bottom: 0.5rem;
    color: var(--ivory-100);
}

.scenario-meta {
    font-size: 0.75rem;
    color: var(--slate-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.difficulty-beginner {
    background: rgba(168,178,195,0.15);
    color: var(--slate-300);
    border: 1px solid rgba(168,178,195,0.25);
}

.difficulty-intermediate {
    background: rgba(212,160,23,0.15);
    color: var(--gold-500);
    border: 1px solid rgba(212,160,23,0.25);
}

.difficulty-advanced {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.30);
}

/* Faculty List */
.faculty-item {
    padding: 0.75rem;
    background: rgba(245,245,240,0.04);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.faculty-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ivory-100);
}

.faculty-item small {
    color: var(--slate-300);
}

/* Notes Preview */
.notes-preview {
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    padding: 0.75rem;
    background: rgba(245,245,240,0.04);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--gold-500);
}

.note-author {
    font-size: 0.75rem;
    color: var(--slate-300);
    margin-bottom: 0.25rem;
}

.note-text {
    font-size: 0.875rem;
    color: var(--ivory-100);
}

.note-date {
    font-size: 0.75rem;
    color: var(--slate-300);
    margin-top: 0.25rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27,31,59,0.80);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(180deg, rgba(245,245,240,0.08), rgba(245,245,240,0.05));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245,245,240,0.15);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(245,245,240,0.12);
}

.modal-header h3 {
    margin: 0;
    color: var(--ivory-100);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate-300);
    transition: color 150ms ease-out;
}

.modal-close:hover {
    color: var(--ivory-100);
}

.modal-body {
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ivory-100);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(245,245,240,0.06);
    border: 1px solid rgba(245,245,240,0.15);
    border-radius: 8px;
    color: var(--ivory-100);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: all 150ms ease-out;
}

.form-input:focus {
    outline: none;
    border-color: rgba(212,160,23,0.40);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

.form-input option {
    background: var(--ink-900);
    color: var(--ivory-100);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* Loading States */
.loading, .loading-small {
    text-align: center;
    padding: 2rem;
    color: var(--slate-300);
}

.loading-small {
    padding: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--slate-300);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hub-content {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar, .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hub-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .session-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .session-actions {
        flex-direction: column;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
}
