/* Global flash messages (TempData → ViewData via TempDataFlashFilter) */
.site-flash-messages {
    padding: 0.75rem 1rem 0;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.site-flash-messages .alert {
    margin-bottom: 0.75rem;
}

/* Dashboard layout - compact density for admin/student/instructor panels */

.admin-dashboard,
.student-dashboard,
.instructor-dashboard {
    background: var(--bg-secondary);
    min-height: calc(100vh - var(--navbar-height));
    padding: var(--spacing-md) 0;
}

/* Compact mode: hide decorative hero on data-heavy pages */
.dashboard-compact .admin-hero-section,
.dashboard-compact .student-hero-section {
    display: none;
}

.admin-hero-section,
.student-hero-section {
    position: relative;
    padding: 1.25rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.admin-hero-section .hero-content,
.student-hero-section .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.admin-hero-section .hero-badge,
.student-hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.375rem 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #fff;
}

.admin-hero-section .hero-title,
.student-hero-section .hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: #fff;
    line-height: 1.2;
}

.admin-hero-section .hero-subtitle,
.student-hero-section .hero-subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-decoration .decoration-circle {
    display: none;
}

.sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.admin-profile-card {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-sm);
}

.admin-profile-card .profile-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.admin-name {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.admin-role {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.sidebar-nav .nav-link {
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    width: 18px;
    text-align: center;
    margin-right: 0.5rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(138, 53, 106, 0.1);
    color: var(--primary-color);
}

.page-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.filters-section {
    margin-bottom: var(--spacing-md);
}

.filters-section .row {
    margin-bottom: var(--spacing-sm) !important;
}

.admin-dashboard .filters-section.card {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.admin-dashboard .filters-section .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.admin-dashboard .filters-section .input-group-text {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

.stat-card {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.stat-card .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.table > :not(caption) > * > * {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* İşlemler sütunu tablonun en solunda */
.admin-dashboard .table thead th:first-child,
.student-dashboard .table thead th:first-child {
    white-space: nowrap;
}

.admin-dashboard .table tbody td:first-child,
.student-dashboard .table tbody td:first-child {
    white-space: nowrap;
    vertical-align: middle;
}

.search-filters-container {
    padding: var(--spacing-md) !important;
}

.student-dashboard .course-progress-card {
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.student-dashboard .course-progress-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

/* Instructor dashboard — unified page header (Appointments pattern) */
.instructor-dashboard {
    --ia-primary:       var(--primary-color, #8a356a);
    --ia-primary-light: rgba(138, 53, 106, 0.12);
}

.instructor-dashboard .ia-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ia-primary-light);
}

.instructor-dashboard .ia-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark, #6f2a56);
    margin: 0 0 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-dashboard .ia-page-title i {
    color: var(--ia-primary);
}

.instructor-dashboard .ia-page-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.instructor-dashboard .ia-page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 575px) {
    .instructor-dashboard .ia-page-header {
        flex-direction: column;
    }
}
