/* ==================== TEKS Performance Analyzer Styles ==================== */
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
}

h1 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.subtitle {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Upload Section */
.upload-section {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #667eea;
    background: #edf2f7;
}

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

.upload-label {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.2s;
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab {
    padding: 15px 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #718096;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #667eea;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Charts */
.chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Student List */
.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Student Cards */
.student-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.student-card.does-not-meet {
    border-left: 5px solid #f56565;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.student-card.approaches {
    border-left: 5px solid #ecc94b;
    background: linear-gradient(135deg, #fffff0 0%, #fefcbf 100%);
}

.student-card.meets {
    border-left: 5px solid #4299e1;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.student-card.masters {
    border-left: 5px solid #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.student-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.student-score {
    font-size: 1.1em;
    color: #4a5568;
    margin-bottom: 15px;
}

/* TEKS Badges */
.teks-struggle {
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.teks-badge {
    display: inline-block;
    background: #fed7d7;
    color: #c53030;
    padding: 5px 10px;
    border-radius: 6px;
    margin: 5px 5px 5px 0;
    font-size: 0.9em;
    font-weight: 600;
}

.teks-badge.strong {
    background: #c6f6d5;
    color: #22543d;
}

/* Filters */
.filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-checkbox:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-checkbox:has(input:checked) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

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

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e2e8f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #cbd5e0;
    transform: rotate(90deg);
}

/* TEKS Details */
.teks-detail {
    background: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.teks-code {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.teks-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Performance Indicators */
.performance-indicator {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin-left: 10px;
}

.performance-high {
    background: #c6f6d5;
    color: #22543d;
}

.performance-medium {
    background: #fef3c7;
    color: #78350f;
}

.performance-low {
    background: #fed7d7;
    color: #742a2a;
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    opacity: 0.9;
}

/* TEKS Section */
.teks-section {
    margin-bottom: 30px;
}

.teks-section h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.teks-grid {
    display: grid;
    gap: 15px;
}

.weak-teks {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-left: 5px solid #f56565;
}

.strong-teks {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-left: 5px solid #48bb78;
}

/* Help Button and Modal */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.help-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.help-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

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

.help-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

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

.help-slide {
    display: none;
    padding: 60px;
    min-height: 500px;
}

.help-slide.active {
    display: block;
}

.help-close {
    position: sticky;
    top: 0;
    right: 0;
    background: white;
    padding: 20px;
    text-align: right;
    border-bottom: 2px solid #e2e8f0;
    z-index: 10;
}

.help-close button {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.help-close button:hover {
    background: #c53030;
}

.help-slide-header {
    text-align: center;
    margin-bottom: 40px;
}

.help-slide-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.help-slide h2 {
    color: #2d3748;
    font-size: 32px;
    margin-bottom: 15px;
}

.help-slide h3 {
    color: #4a5568;
    font-size: 24px;
    margin-bottom: 20px;
}

.help-step {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.help-step-number {
    display: inline-block;
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 15px;
}

.help-step h4 {
    display: inline-block;
    color: #2d3748;
    font-size: 18px;
}

.help-step p, .help-step ul {
    color: #4a5568;
    line-height: 1.8;
    margin-top: 10px;
    margin-left: 45px;
}

.help-tip-box {
    background: #edf2f7;
    border-left: 4px solid #48bb78;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.help-tip-box strong {
    color: #48bb78;
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.help-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.help-nav-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.help-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.help-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.help-progress-dots {
    display: flex;
    gap: 10px;
}

.help-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s;
    cursor: pointer;
}

.help-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

.help-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.help-feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.help-feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.help-feature-card p {
    font-size: 14px;
    opacity: 0.9;
}

.help-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
