/* Simple LMS Student Panel Styles */

:root {
    --primary-red: #8B0000;
    --secondary-red: #A52A2A;
    --light-red: #CD5C5C;
    --dark-red: #5C0000;
    --accent-red: #DC143C;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-gray: #DDDDDD;
    --text-dark: #333333;
}

.simple-lms-student-panel {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Login Container */
.lms-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.lms-login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lms-login-header {
    text-align: center;
    margin-bottom: 35px;
}

.lms-login-header .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.lms-login-header h2 {
    color: var(--primary-red);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.lms-login-header p {
    margin: 0;
}

.lms-login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.lms-login-form .lms-form-group {
    margin-bottom: 25px;
}

.lms-login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.lms-login-form label .dashicons {
    color: var(--primary-red);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.lms-login-form input[type="text"],
.lms-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.lms-login-form input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.lms-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.lms-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Alert */
.lms-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.lms-alert-error {
    background: #FFF5F5;
    color: #DC3545;
    border-left: 4px solid #DC3545;
}

/* Profil Bilgileri */
.lms-profile-section {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.lms-profile-title {
    color: var(--primary-red);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-profile-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.lms-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lms-profile-item {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border-gray);
    transition: all 0.3s ease;
}

.lms-profile-item:hover {
    border-color: var(--light-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
}

.lms-profile-label {
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lms-profile-label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lms-profile-value {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    word-break: break-word;
}

.lms-password-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-show-password-btn {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.lms-show-password-btn:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

.lms-show-password-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Student Header */
.lms-student-header {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.25);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lms-welcome h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lms-welcome p {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
}

/* Educations Grid */
.lms-educations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.lms-education-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: cardFadeIn 0.5s ease;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.lms-education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(139, 0, 0, 0.2);
}

.lms-education-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-red), var(--secondary-red));
}

.lms-education-content {
    padding: 25px;
}

.lms-education-title {
    color: var(--primary-red);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.lms-education-description {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lms-education-footer {
    padding: 20px 25px;
    background: var(--light-gray);
    border-top: 2px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lms-video-count {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lms-video-count .dashicons {
    color: var(--primary-red);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lms-start-btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lms-start-btn:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

/* Video Area */
.lms-video-area {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.lms-video-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.lms-video-header h2 {
    color: var(--primary-red);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.lms-video-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.lms-video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.lms-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lms-video-thumbnail {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
    border-radius: 16px 0 0 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lms-video-thumbnail:hover {
    transform: scale(1.02);
}

.lms-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lms-video-thumbnail:hover .lms-video-overlay {
    background: rgba(0,0,0,0.3);
}

.lms-play-button {
    width: 100px;
    height: 100px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.4);
}

.lms-video-thumbnail:hover .lms-play-button {
    transform: scale(1.15);
    background: var(--accent-red);
    box-shadow: 0 12px 32px rgba(220, 20, 60, 0.5);
}

.lms-play-button .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: var(--white);
    margin-left: 8px;
    line-height: 1;
}

.lms-video-sidebar {
    background: var(--light-gray);
    padding: 25px;
    overflow-y: auto;
    max-height: 600px;
}

.lms-video-sidebar h3 {
    color: var(--primary-red);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lms-video-sidebar h3 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.lms-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-video-item {
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lms-video-item:hover {
    border-color: var(--light-red);
    transform: translateX(5px);
}

.lms-video-item.active {
    border-color: var(--primary-red);
    background: #FFF5F5;
}

.lms-video-item-title {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lms-video-item-title .dashicons {
    color: var(--primary-red);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lms-video-item-description {
    color: #666;
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.lms-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lms-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lms-btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.lms-btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.lms-btn-secondary {
    background: var(--secondary-red);
    color: var(--white);
}

.lms-btn-secondary:hover {
    background: var(--primary-red);
}

.lms-btn-block {
    width: 100%;
    justify-content: center;
}

/* Loading State */
.lms-loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dark);
}

.lms-loading-state .lms-spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lms-loading-state p {
    font-size: 16px;
    color: #666;
}

/* Empty State */
.lms-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.lms-empty-state .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: var(--light-red);
    margin-bottom: 20px;
}

.lms-empty-state h3 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.lms-empty-state p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .lms-video-container {
        grid-template-columns: 1fr;
    }
    
    .lms-video-sidebar {
        max-height: 400px;
    }
    
    .lms-video-thumbnail {
        border-radius: 16px 16px 0 0;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .lms-student-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 30px 20px;
    }
    
    .lms-welcome h1 {
        font-size: 28px;
    }
    
    .lms-welcome p {
        font-size: 16px;
    }
    
   .lms-educations-grid {
        grid-template-columns: 1fr;
    }
    
    .lms-video-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lms-login-box {
        padding: 30px 20px;
    }
    
    .lms-video-thumbnail {
        height: 300px;
    }
    
    .lms-play-button {
        width: 80px;
        height: 80px;
    }
    
    .lms-play-button .dashicons {
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
    
    .lms-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .lms-profile-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .lms-welcome h1 {
        font-size: 24px;
    }
    
    .lms-education-title {
        font-size: 18px;
    }
    
    .lms-video-thumbnail {
        height: 250px;
    }
}

/* Ders Ekleri */
.lms-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.lms-attachment-item {
    background: var(--white);
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--border-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.lms-attachment-item:hover {
    border-color: var(--light-red);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.1);
}

.lms-attachment-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.lms-attachment-info {
    flex: 1;
}

.lms-attachment-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.lms-attachment-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
}

.lms-attachment-type {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-red);
}

.lms-attachment-download {
    color: var(--primary-red);
    font-size: 20px;
}

.lms-attachment-item:hover .lms-attachment-download {
    transform: scale(1.2);
}