/* Reset and Base 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;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Login Screen */
#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

/* Login container - centers content on standalone pages */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
}

/* Login box - the actual form container */
.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

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

.login-header h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
}

.user-type-selector {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.user-type-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-btn.active {
    background: #667eea;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

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

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Register Screen */
#register-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Register container - same as login for consistency */
.register-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
}

.register-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #667eea;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.register-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Dashboard Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.nav-logo h2 {
    color: #667eea;
    font-size: 1.8rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    background: #f8f9fa;
    color: #667eea;
    border-right: 3px solid #667eea;
}

.nav-menu .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Profile Section */
.profile-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Upload Area */
.upload-area {
    margin-bottom: 30px;
}

.upload-box {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    background: #f0f2ff;
    border-color: #5a6fd8;
}

.upload-box i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-box p {
    color: #666;
    font-size: 1.1rem;
}

.upload-box input[type="file"] {
    display: none;
}

/* Evaluations List */
.evaluations-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.evaluation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.evaluation-item:last-child {
    border-bottom: none;
}

.evaluation-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.evaluation-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Assignments */
.assignments-header {
    margin-bottom: 30px;
}

.assignments-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.assignment-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.assignment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.assignment-due {
    color: #666;
    font-size: 0.9rem;
}

.assignment-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-in-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.assignment-checklist {
    margin-top: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checklist-item.completed {
    text-decoration: line-through;
    color: #666;
}

.time-estimate {
    font-size: 0.9rem;
    color: #667eea;
    margin-left: auto;
}

/* Schedule */
.schedule-calendar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.week-view {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.day-column {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.day-column h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.daily-activities {
    margin-bottom: 15px;
}

.activity-item {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: center;
}

.homework-time {
    background: #e8f5e8;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #155724;
}

.time-remaining {
    font-weight: 600;
}

/* Progress */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.progress-chart {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-chart h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Modals */
.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: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

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

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Activities List */
#activities-list {
    margin-bottom: 15px;
}

.activity-item-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.activity-name {
    font-weight: 500;
    color: #333;
}

.activity-details {
    font-size: 0.9rem;
    color: #666;
}

.activity-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.activity-delete:hover {
    background: #c82333;
}

/* Students List */
.students-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.student-item:last-child {
    border-bottom: none;
}

.student-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.student-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.analytics-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 20px;
    }
    
    .week-view {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .nav-user {
        margin-top: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Success/Error Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Extension Request */
.extension-request {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.extension-request h4 {
    color: #856404;
    margin-bottom: 10px;
}

.extension-reason {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    resize: vertical;
}

/* Time Tracking */
.time-tracking {
    background: #e8f5e8;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.time-tracking h4 {
    color: #155724;
    margin-bottom: 10px;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.time-input {
    width: 80px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.time-label {
    font-size: 0.9rem;
    color: #666;
}

/* Assignment Adaptation Preview */
.adaptation-preview {
    background: #f8f9ff;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.approval-banner {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    background: #f1f3ff;
    color: #3949ab;
}

.approval-banner.status-pending {
    border-left-color: #ffb74d;
    background: #fff8e1;
    color: #a06000;
}

.approval-banner.status-approved {
    border-left-color: #81c784;
    background: #e8f5e9;
    color: #2e7d32;
}

.approval-banner.status-needs_revision {
    border-left-color: #ef9a9a;
    background: #ffebee;
    color: #b71c1c;
}

.approval-banner-header {
    font-weight: 600;
    margin-bottom: 6px;
}

.approval-banner-comment {
    font-size: 0.9rem;
    color: #444;
}

.approval-manager {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #d9def7;
    background: #f7f8ff;
}

.approval-status-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.approval-comment-input {
    width: 100%;
    min-height: 80px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #c5c9ff;
    font-size: 0.95rem;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.approval-comment-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.approval-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.approval-actions .btn {
    flex: 1;
}

.adaptation-preview h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.adaptation-section {
    margin-bottom: 15px;
}

.adaptation-section h5 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.adaptation-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.vocabulary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.vocabulary-item {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.timed-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.timed-section h6 {
    color: #856404;
    margin-bottom: 5px;
}

.timed-section .time-estimate {
    font-weight: 600;
    color: #856404;
}

