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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: white;
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #5a67d8;
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.music-toggle {
    background: #5a67d8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    background: #4c51bf;
    transform: translateY(-2px);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Card Component */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #5a67d8;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Video Panel */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.video-list h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.video-list ul {
    list-style: none;
}

.video-list li {
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.video-list li:hover {
    background: #f7fafc;
}

.video-list a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
}

/* Progress Section */
.chart-container {
    height: 300px;
    margin-bottom: 30px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #5a67d8;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Scheduler */
.sessions-list {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.session-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.session-title {
    font-weight: 600;
    color: #2d3748;
}

.session-time {
    color: #5a67d8;
    font-size: 0.875rem;
}

.session-subject {
    color: #718096;
    font-size: 0.875rem;
}

/* Discussion Forum */
.discussions-list {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.discussion-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.discussion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.discussion-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.discussion-meta {
    color: #718096;
    font-size: 0.875rem;
}

.reply-count {
    color: #5a67d8;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: #5a67d8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background: #4c51bf;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c53030;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="datetime-local"],
textarea {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="datetime-local"]:focus,
textarea:focus {
    outline: none;
    border-color: #5a67d8;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #5a67d8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c51bf;
}