/* Dashboard CSS - Eule App - OHNE ANIMATIONEN & OHNE TRANSPARENZEN */
:root {
    --primary-gradient: linear-gradient(45deg, #ff6b35, #f7931e);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-hover: rgba(255, 255, 255, 0.25);
    --blur-amount: 20px;
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    --white-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Gradient Background - Exact from Original */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, 
        #cfb268 0%,
        #d4a574 25%,
        #b8956a 50%,
        #8b5a3c 75%,
        #5c3317 90%,
        #3d1a00 100%
    );
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.6) 30%, 
        rgba(0,0,0,0.3) 60%, 
        transparent 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Demo Banner */
.demo-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 193, 7, 0.9);
    color: #3d1a00;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Layout */
.dashboard-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 60px;
}

.header-left h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    color: white;
}

.header-info {
    font-size: 0.9rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-badge div {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.logout-btn {
    background: rgba(231, 76, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

/* Navigation */
.header-navigation {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-button {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-shadow: var(--text-shadow);
    cursor: pointer;
}

.nav-button.active {
    background: var(--glass-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.content-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    display: none;
}

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

/* Grid Layouts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Stat Cards */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow);
}

.stat-card .label {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: var(--white-shadow);
}

/* Dashboard Buttons */
.dashboard-button {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.dashboard-button .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.dashboard-button .title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    text-shadow: var(--text-shadow);
}

.dashboard-button .description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    text-shadow: var(--white-shadow);
}

/* Recent Activities */
.recent-activities {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.recent-activities h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-type {
    font-weight: 500;
    color: white;
    text-shadow: var(--text-shadow);
}

.activity-details {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.activity-time {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Quick Actions */
.quick-actions {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.quick-actions h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.8rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    cursor: pointer;
    display: inline-block;
}

/* Groups Section */
.group-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.group-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.group-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: #4caf50;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-inactive {
    background: #f44336;
    color: white;
    border: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.student-chip {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1a1a1a;
}

.teacher-name {
    color: #e74c3c;
    font-weight: 600;
}

.subject-name {
    color: #3498db;
    font-weight: 600;
}

.teacher-name-blue {
    color: #3498db;
    font-weight: 600;
}

.subject-name-red {
    color: #e74c3c;
    font-weight: 600;
}

/* Topics Section */
.topic-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.topic-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow);
}

.subject-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.subject-tag {
    background: #fff9c4;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #f9a825;
}

.topic-description {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.criteria-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.criteria-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow);
}

/* Rating Section */
.rating-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    color: black;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select option {
    background: white;
    color: black;
}

.student-rating-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.student-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    text-shadow: var(--text-shadow);
}

.rating-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.rating-badge-solid {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-complete {
    background: #27ae60;
    color: white;
    border: none;
    font-weight: bold;
}

.badge-pending {
    background: #f9c107;
    color: white;
    border: none;
    font-weight: bold;
}

.rate-button {
    background: var(--primary-gradient);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #5c3317, #3d1a00);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
    text-shadow: var(--text-shadow);
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
    text-shadow: var(--text-shadow);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.8rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: black;
    font-size: 1rem;
}

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

.form-select option {
    background: white;
    color: black;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Student Assignment Section */
.assignment-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.assignment-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.student-label {
    font-weight: 500;
    color: white;
}

.assignment-select {
    padding: 0.5rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: black;
    font-size: 0.9rem;
}

/* Bewertungs-System wie Original */
.bewertung-container {
    width: 100%;
    min-height: 500px;
}

.bewertung-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--glass-border);
}

.student-info {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.5rem;
}

.project-info {
    opacity: 0.8;
    font-size: 1rem;
}

/* Tab Navigation wie Original */
.rating-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 0;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: #ff9800;
}

.tab-content {
    display: none;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

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

/* Grade Button System */
.grade-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.grade-btn {
    min-width: 60px;
    padding: 12px 16px;
    background: #e0e0e0;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #333;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.grade-btn:hover {
    background: #d0d0d0;
}

.grade-btn.selected {
    background: #4caf50;
    color: white;
    border-color: #388e3c;
}

.grade-btn.na {
    background: #ff9800;
    color: white;
}

.grade-btn.note {
    background: #2196f3;
    color: white;
}

.final-grade-display {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.final-grade-display h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.final-grade-value {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.final-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 2rem;
}

.final-button:hover {
    background: #388e3c;
}

.note-input-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: none;
}

.note-input-section.show {
    display: block;
}

.note-textarea {
    width: 100%;
    padding: 0.8rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: black;
    font-size: 1rem;
    min-height: 80px;
    resize: vertical;
}

/* Category Styles */
.category-section {
    background: rgba(139, 106, 99, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.category-weight {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.success-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 2000;
}

.success-toast.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-navigation {
        padding: 0.5rem 1rem 1rem;
        gap: 0.3rem;
        justify-content: center;
    }

    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .main-content {
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .assignment-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}