/* Student Dashboard Modern Styles */

/* Student Dashboard Hero Section */
.student-hero-section {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    overflow: hidden;
}


.student-hero-section .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.student-hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.student-hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.student-hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Grid */
.student-hero-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.student-hero-section .stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.student-hero-section .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.student-hero-section .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.student-hero-section .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.student-hero-section .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Hero Decoration */
.student-hero-section .hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.student-hero-section .decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.student-hero-section .decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.student-hero-section .decoration-circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 2s;
}

.student-hero-section .decoration-circle-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 20%;
    animation-delay: 4s;
}

.student-hero-section .decoration-circle-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 30%;
    animation-delay: 1s;
}

.student-hero-section .decoration-circle-5 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.student-hero-section .decoration-circle-6 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 60%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(90deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(270deg); 
    }
}

/* Dashboard Content */
.dashboard-content-modern {
    padding: 3rem 0;
    background: #f8f9fa;
    min-height: 600px;
}

/* Modern Sidebar Styles - InstructorDashboard ile aynı */
.sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(168, 85, 163, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855a3, #c084c5);
    border-radius: 20px 20px 0 0;
}

/* Instructor Profile Card */
.instructor-profile-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(168, 85, 163, 0.1);
    margin-bottom: 1rem;
}

.instructor-profile-card .profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.instructor-profile-card .profile-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #a855a3;
    box-shadow: 0 4px 15px rgba(168, 85, 163, 0.3);
    transition: all 0.3s ease;
}

.instructor-profile-card .profile-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855a3, #c084c5);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.instructor-profile-card .profile-image:hover::after {
    opacity: 0.2;
}

.instructor-name {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.instructor-specialty {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-nav .nav-link {
    color: #64748b;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.sidebar-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(168, 85, 163, 0.1), rgba(192, 132, 197, 0.1));
    color: #a855a3;
    border-color: rgba(168, 85, 163, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(168, 85, 163, 0.15);
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #a855a3, #c084c5);
    color: white;
    border-color: #a855a3;
    box-shadow: 0 6px 20px rgba(168, 85, 163, 0.4);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #a855a3, #c084c5);
    border-radius: 0 4px 4px 0;
}

.sidebar-nav .badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Sessions Section */
.sessions-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #a855a3, #c084c5);
}

.session-card.active {
    border-color: #a855a3;
    box-shadow: 0 4px 15px rgba(168, 85, 163, 0.15);
}

.session-card.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 163, 0.2);
}

.session-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.session-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.session-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.session-status.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.session-status.inactive {
    background: #6c757d;
    color: white;
}

.session-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.session-info-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.session-info-item i {
    width: 16px;
    margin-right: 0.5rem;
    color: #a855a3;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-session {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-session-primary {
    background: linear-gradient(135deg, #a855a3, #c084c5);
    color: white;
}

.btn-session-primary:hover {
    background: linear-gradient(135deg, #92459e, #a855a3);
    color: white;
    transform: translateY(-1px);
}

.btn-session-secondary {
    background: transparent;
    color: #a855a3;
    border: 1px solid #a855a3;
}

.btn-session-secondary:hover {
    background: #a855a3;
    color: white;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855a3, #c084c5);
}

.badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 85, 163, 0.2);
}

.badge-icon {
    font-size: 3rem;
    color: #a855a3;
    margin-bottom: 1rem;
}

.badge-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.badge-description {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Announcements List */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #a855a3, #c084c5);
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 163, 0.15);
}

.announcement-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.announcement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.announcement-date {
    font-size: 0.8rem;
    color: #64748b;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.announcement-content {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Support Section */
.support-content {
    padding: 1rem 0;
}

.support-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855a3, #c084c5);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 85, 163, 0.2);
}

.support-icon {
    font-size: 3rem;
    color: #a855a3;
    margin-bottom: 1rem;
}

.support-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.support-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Evaluation Section */
.evaluation-content {
    padding: 1rem 0;
}

.evaluation-intro {
    background: linear-gradient(135deg, rgba(168, 85, 163, 0.05), rgba(192, 132, 197, 0.05));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #a855a3;
}

.evaluation-intro h5 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.evaluation-intro p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.evaluation-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
}

.evaluation-question {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.evaluation-question:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.evaluation-question .form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: block;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-stars .fas.fa-star {
    font-size: 1.5rem;
    color: #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .fas.fa-star:hover,
.rating-stars .fas.fa-star.active {
    color: #ffc107;
    transform: scale(1.1);
}

.evaluation-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

/* Materials and Recordings Lists */
.materials-list,
.recordings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.material-item,
.recording-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.material-item:hover,
.recording-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.material-item i,
.recording-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.material-item span,
.recording-item span {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.material-item small,
.recording-item small {
    color: #64748b;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .session-info {
        grid-template-columns: 1fr;
    }
    
    .session-actions {
        flex-direction: column;
    }
    
    .btn-session {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .support-card {
        margin-bottom: 1rem;
    }
    
    .rating-stars {
        justify-content: center;
    }
    
    .evaluation-form {
        padding: 1rem;
    }
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* Course Items */
.course-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-thumbnail {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.course-type-badge.course {
    background: #28a745;
}

.course-type-badge.package {
    background: #007bff;
}

.course-info {
    flex: 1;
}

.course-title {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.course-instructor {
    margin: 0 0 0.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.course-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.enrollment-date,
.expiration-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.expiration-date.warning {
    color: #dc3545;
    font-weight: 600;
}

.course-progress {
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.weekly-materials {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.materials-title {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.material-info {
    flex: 1;
}

.material-title {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.material-description {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.material-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.badge-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.badge-item.earned {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1));
}

.badge-item.locked {
    opacity: 0.6;
    filter: grayscale(50%);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.badge-name {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.badge-description {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.badge-earned-date {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
}

.badge-progress {
    text-align: center;
}

.badge-progress .progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.badge-progress .progress-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

/* Announcements */
.announcement-item {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.announcement-item.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #721c24;
}

.announcement-item.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #856404;
}

.announcement-item.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left-color: #0dcaf0;
    color: #055160;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.announcement-title {
    margin: 0;
    font-weight: 600;
}

.announcement-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

.announcement-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* PDF Viewer */
.pdf-viewer-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
}

#pdfViewer {
    border: none;
    border-radius: 10px;
    /* Hide PDF download button and toolbar */
    pointer-events: auto;
}

/* Hide PDF toolbar and download button */
#pdfViewer::-webkit-scrollbar {
    display: none;
}

/* PDF Modal positioning */
#pdfViewerModal .modal-dialog {
    margin: 5vh auto;
    max-width: 95%;
    max-height: 90vh;
    transform: none !important;
}

#pdfViewerModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Ensure modal is properly positioned */
#pdfViewerModal.modal {
    padding-top: 0 !important;
}

#pdfViewerModal.modal.show {
    padding-top: 0 !important;
}

#pdfViewerModal .modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

#pdfViewerModal .modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

#pdfViewerModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 15px 15px;
    flex-shrink: 0;
}

/* PDF Viewer Controls */
.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.page-info, .zoom-info {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    text-align: center;
}

/* PDF Canvas */
.pdf-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* PDF Error */
.pdf-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f8f9fa;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.error-message i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-message h5 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-message p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Disable text selection in PDF viewer */
.pdf-viewer-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Disable drag and drop */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable image saving */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Additional security overlay */
.pdf-viewer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

/* Disable context menu globally in modal */
#pdfViewerModal {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#pdfViewerModal * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .student-hero-section {
        padding: 4rem 0 3rem 0;
    }
    
    .student-hero-section .hero-title {
        font-size: 2.5rem;
    }
    
    .student-hero-section .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .student-hero-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .student-hero-section .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .student-hero-section .stat-icon {
        font-size: 2rem;
    }
    
    .student-hero-section .stat-number {
        font-size: 2rem;
    }
    
    /* Course Items Mobile */
    .course-header {
        flex-direction: column;
    }
    
    .course-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .material-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .material-actions {
        justify-content: center;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Mobile PDF Viewer */
    #pdfViewerModal .modal-dialog {
        margin: 2vh auto;
        max-width: calc(100% - 1rem);
        max-height: 96vh;
        transform: none !important;
    }
    
    #pdfViewer {
        min-height: 400px;
    }
    
    #pdfViewerModal {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .student-hero-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Hero Section Small Mobile */
    .student-hero-section .hero-title {
        font-size: 2rem;
    }
    
    .student-hero-section .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .student-hero-section .stat-card {
        padding: 1.25rem 1rem;
    }
    
    .student-hero-section .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.dashboard-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header-modern {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-modern {
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.card-body-modern {
    padding: 2rem;
}

/* Courses Grid Dashboard */
.courses-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-card-dashboard {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card-dashboard:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-image-dashboard {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.course-image-dashboard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card-dashboard:hover .course-image-dashboard img {
    transform: scale(1.05);
}

.course-badge-dashboard {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--success-color), #22c55e);
}

.course-progress-dashboard {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.course-content-dashboard {
    padding: 1.25rem;
}

.course-title-dashboard {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-instructor-dashboard {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.course-meta-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-rating-dashboard {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-text {
    color: #666;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.course-price-dashboard {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.course-progress-bar-dashboard {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.course-progress-fill-dashboard {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.course-action-dashboard {
    width: 100%;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, #667eea, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Quiz Results List */
.quiz-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.quiz-result-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.quiz-result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.quiz-result-content {
    flex: 1;
}

.quiz-result-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.quiz-result-score {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.quiz-result-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.quick-action-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
}

.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.action-content h6 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-weight: 700;
    font-size: 0.95rem;
}

.action-content p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

/* Invoices List */
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.invoice-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.invoice-info h6 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
}

.invoice-info p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

.invoice-amount {
    text-align: right;
}

.invoice-amount .amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.invoice-amount .status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.status-paid {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

/* Progress Overview */
.progress-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.progress-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.progress-percentage {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.progress-bar-overview {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill-overview {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .courses-grid-dashboard {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-card-modern {
        margin-bottom: 1.5rem;
    }
    
    .card-body-modern {
        padding: 1.5rem;
    }
}

/* Loading States */
.loading-state-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #666;
}

.loading-spinner-dashboard {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
