/* =============================================
   Öğretmen Arayüzü Stili — Mobile-First
   ============================================= */

/* =============================================
   Öğretmen Ana Sayfa (Giriş)
   ============================================= */
.teacher-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 50%, #FFF0F5 100%);
}

.teacher-login-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

.teacher-login-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.teacher-login-subtitle {
    font-size: 0.938rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.teacher-select-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    width: 100%;
    max-width: 400px;
}

.teacher-select-card h3 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 1.125rem;
    color: var(--primary);
}

.teacher-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.teacher-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    min-height: 56px;
    text-decoration: none;
}

.teacher-list-item:hover {
    border-color: var(--primary);
    background: rgba(27, 58, 107, 0.05);
    color: var(--primary);
    transform: translateX(4px);
}

.teacher-list-item .teacher-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-turquoise), var(--primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* =============================================
   Öğretmen Dashboard
   ============================================= */
.teacher-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.teacher-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.teacher-header h1 {
    font-size: 1.125rem;
    color: white;
    font-weight: 700;
}

.teacher-header-sub {
    font-size: 0.813rem;
    opacity: 0.85;
    margin-top: 2px;
}

.teacher-back-btn {
    color: white;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: var(--radius);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.teacher-back-btn:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.teacher-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Ders-Sınıf Kartları */
.assignment-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assignment-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.assignment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
    color: inherit;
}

.assignment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.assignment-card-subject {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.assignment-card-class {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-light));
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.813rem;
}

.assignment-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.assignment-card-stats .progress-bar {
    flex: 1;
}

.assignment-card-count {
    font-weight: 700;
    white-space: nowrap;
}

.assignment-complete {
    border-left: 4px solid var(--success);
}

.assignment-incomplete {
    border-left: 4px solid var(--warning);
}

/* =============================================
   Görüş Giriş Sayfası
   ============================================= */
.comment-page-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    text-align: center;
}

.comment-page-info h2 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.comment-page-info span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.student-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.student-comment-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.student-comment-card.saved {
    border-left: 4px solid var(--success);
}

.student-comment-card.unsaved {
    border-left: 4px solid var(--border);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.student-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-turquoise);
    flex-shrink: 0;
    background: var(--bg-body);
}

.student-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.student-no {
    font-size: 0.813rem;
    color: var(--text-muted);
}

.comment-input-wrapper {
    position: relative;
}

.comment-textarea {
    width: 100%;
    padding: 12px 14px;
    padding-bottom: 32px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.938rem;
    color: var(--text-primary);
    resize: none;
    min-height: 80px;
    transition: var(--transition);
    line-height: 1.5;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.danger {
    color: var(--error);
}

.comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.save-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 600;
}

.save-status.saved {
    color: var(--success);
}

.save-status.saving {
    color: var(--warning);
}

.save-status.unsaved {
    color: var(--text-muted);
}

.btn-save-comment {
    padding: 10px 24px;
    font-size: 0.938rem;
    min-height: 44px;
}

/* =============================================
   Responsive — Mobil Özel
   ============================================= */
@media (max-width: 480px) {
    .teacher-login-logo {
        width: 100px;
        height: 100px;
    }

    .teacher-login-title {
        font-size: 1.25rem;
    }

    .teacher-select-card {
        padding: 20px;
    }

    .teacher-header {
        padding: 16px;
    }

    .teacher-content {
        padding: 16px;
    }

    .student-comment-card {
        padding: 16px;
    }

    .student-photo {
        width: 48px;
        height: 48px;
    }

    .student-name {
        font-size: 1rem;
    }
}
