/* Student Study Material Dashboard Design Tokens & Aesthetics */

:root {
    --dash-primary: #4f46e5;
    --dash-primary-hover: #4338ca;
    --dash-secondary: #06b6d4;
    --dash-accent: #8b5cf6;
    --dash-bg-card: rgba(255, 255, 255, 0.95);
    --dash-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --dash-hover-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15), 0 10px 15px -5px rgba(79, 70, 229, 0.1);
    --dash-border-radius: 16px;
}

/* Glassmorphism Header & Card Layout */
.student-dashboard-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #06b6d4 100%);
    border-radius: var(--dash-border-radius);
    color: #ffffff;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25);
    position: relative;
    overflow: hidden;
}

.student-dashboard-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.stat-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Control & Filter Panel */
.material-control-bar {
    background: #ffffff;
    border-radius: var(--dash-border-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--dash-shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.search-input-wrapper i,
.search-input-wrapper svg,
.search-input-wrapper .svg-inline--fa,
.search-input-wrapper .search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
}

.search-input-wrapper input {
    padding-left: 2.75rem !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    width: 100% !important;
}

.search-input-wrapper input:focus {
    border-color: var(--dash-primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}

/* Resource Cards Grid */
.resource-card {
    background: var(--dash-bg-card);
    border-radius: var(--dash-border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--dash-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dash-hover-shadow);
    border-color: rgba(79, 70, 229, 0.3);
}

.resource-card-header {
    padding: 1.25rem 1.25rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #eef2ff;
    color: var(--dash-primary);
}

.semester-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.semester-badge.sem-1 { background: #0284c7; color: #ffffff; }
.semester-badge.sem-2 { background: #0d9488; color: #ffffff; }
.semester-badge.sem-3 { background: #d97706; color: #ffffff; }
.semester-badge.sem-4 { background: #dc2626; color: #ffffff; }
.semester-badge.sem-5 { background: #9333ea; color: #ffffff; }
.semester-badge.sem-6 { background: #db2777; color: #ffffff; }
.semester-badge.sem-7 { background: #059669; color: #ffffff; }
.semester-badge.sem-8 { background: #4f46e5; color: #ffffff; }

.resource-card-body {
    padding: 0.75rem 1.25rem 1.25rem;
    flex-grow: 1;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.resource-card-footer {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 0.5rem;
}

/* View Switcher Toggle Buttons */
.view-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--dash-primary);
    color: #ffffff;
    border-color: var(--dash-primary);
}

/* Empty State Container */
.empty-state-card {
    background: #ffffff;
    border-radius: var(--dash-border-radius);
    padding: 4rem 2rem;
    text-center;
    box-shadow: var(--dash-shadow);
    border: 1px solid #e2e8f0;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #eef2ff;
    color: var(--dash-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Modal iframe preview styling */
.preview-modal-body {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}

.preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modern Auth Pages Design System */
.auth-page-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    margin: auto;
}

.auth-card-wide {
    max-width: 780px;
}

.auth-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.auth-header .logo-badge {
    width: 65px;
    height: 65px;
    background: #ffffff;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.auth-header h3 {
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.auth-body {
    padding: 2.25rem 2rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
    font-size: 1rem;
}

.auth-input-group .form-control,
.auth-input-group .form-select {
    padding-left: 2.85rem !important;
    height: 48px;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-input-group .form-control:focus,
.auth-input-group .form-select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15) !important;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    font-weight: 700;
    height: 48px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
    color: #ffffff;
}
