/* ===== ASL HUB STYLES ===== */
/* Based on D&D Schedule/Inventory clean styling */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    color: #4a5568;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.user-info span {
    color: #4a5568;
    font-size: 1rem;
}

.logout-btn, .back-btn {
    background: #e53e3e;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-btn {
    background: #3182ce;
}

.logout-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
}

.back-btn:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

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

.login-header h1 {
    color: #4a5568;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #718096;
    font-size: 1.1rem;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(247, 250, 252, 0.8);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.form-section h2 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
}

.form-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-button:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.form-button:active {
    transform: translateY(0);
}

.forgot-password-btn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    margin-top: 15px;
}

.forgot-password-btn:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.message.error {
    background: #feb2b2;
    color: #742a2a;
    border: 1px solid #f56565;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #48bb78;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-rows: auto 1fr;
    gap: 20px;
    grid-template-areas: 
        "user-info progress-bar"
        "main-content sidebar";
}

.user-info-box {
    grid-area: user-info;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.progress-bar-container {
    grid-area: progress-bar;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.8s ease;
    position: relative;
    background: #e53e3e; /* Default red */
}

/* Progress bar colors based on percentage */
.progress-fill.progress-0-50 {
    background: #e53e3e;
}

.progress-fill.progress-51-75 {
    background: linear-gradient(90deg, #e53e3e 0%, #e53e3e 66.67%, #d69e2e 66.67%, #d69e2e 100%);
}

.progress-fill.progress-76-100 {
    background: linear-gradient(90deg, #e53e3e 0%, #e53e3e 50%, #d69e2e 50%, #d69e2e 75%, #38a169 75%, #38a169 100%);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-button {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-button:hover {
    background: rgba(66, 153, 225, 0.1);
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-button.active {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border-color: #3182ce;
}

.main-content {
    grid-area: main-content;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

/* ===== SKILLS PAGE STYLES ===== */
.skills-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Search Bar Styles */
.search-container {
    background: rgba(247, 250, 252, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-clear {
    padding: 12px 20px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: #c53030;
    transform: translateY(-1px);
}

.search-results {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
    text-align: right;
}

/* Skill item visibility for search */
.skill-item.hidden {
    display: none;
}

.skill-item {
    background: rgba(247, 250, 252, 0.8);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 60px;
}

.skill-item:hover {
    border-color: #4299e1;
    box-shadow: 0 4px 20px rgba(66, 153, 225, 0.1);
}

.skill-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    flex: 0 0 250px;
    margin: 0;
    text-align: left;
}

.skill-buttons {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.skill-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.skill-resources {
    flex: 1;
    margin: 0;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

.skill-resources h4 {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.skill-button {
    padding: 8px 16px;
    border: 2px solid;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

.skill-button.not-started {
    border-color: #e53e3e;
    color: #e53e3e;
}

.skill-button.not-started.active {
    background: #e53e3e;
    color: white;
}

.skill-button.progressing {
    border-color: #d69e2e;
    color: #d69e2e;
}

.skill-button.progressing.active {
    background: #d69e2e;
    color: white;
}

.skill-button.proficient {
    border-color: #38a169;
    color: #38a169;
}

.skill-button.proficient.active {
    background: #38a169;
    color: white;
}

.skill-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill-resources {
    margin-top: 20px;
}

.skill-resources h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.resources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-item {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(66, 153, 225, 0.3);
    display: inline-block;
}

.resource-item:hover {
    background: rgba(66, 153, 225, 0.2);
    transform: translateY(-1px);
}

/* ===== TEACHER DASHBOARD STYLES ===== */
.teacher-dashboard .main-content {
    grid-column: 1 / -1;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.student-card {
    background: rgba(247, 250, 252, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.student-card:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

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

.student-progress {
    margin-bottom: 15px;
}

.student-progress-bar {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.student-progress-fill {
    height: 100%;
    transition: width 0.8s ease;
    background: #e53e3e; /* Default red */
}

/* Student progress bar colors based on percentage */
.student-progress-fill.progress-0-50 {
    background: #e53e3e;
}

.student-progress-fill.progress-51-75 {
    background: linear-gradient(90deg, #e53e3e 0%, #e53e3e 66.67%, #d69e2e 66.67%, #d69e2e 100%);
}

.student-progress-fill.progress-76-100 {
    background: linear-gradient(90deg, #e53e3e 0%, #e53e3e 50%, #d69e2e 50%, #d69e2e 75%, #38a169 75%, #38a169 100%);
}

.student-progress-text {
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
}

/* ===== GOALS PAGE STYLES ===== */
.goals-page .dashboard-container {
    align-items: flex-start;
}

.goals-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 24px;
    width: 100%;
}

.goal-create-card,
.goal-cards-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(76, 81, 191, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.goal-cards-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-cards-header h2 {
    font-size: 1.6rem;
    color: #2d3748;
}

.goal-cards-header p {
    color: #4a5568;
    margin-top: 6px;
}

.goal-instructions {
    color: #4a5568;
    margin-bottom: 20px;
}

.goal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goal-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.goal-select,
.goal-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #2d3748;
}

.goal-select:focus,
.goal-textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.goal-type-toggle {
    display: inline-flex;
    background: rgba(237, 242, 247, 0.7);
    border-radius: 12px;
    padding: 6px;
    gap: 10px;
}

.goal-type-option {
    position: relative;
    cursor: pointer;
}

.goal-type-option input {
    position: absolute;
    opacity: 0;
}

.goal-type-option span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s ease;
}

.goal-type-option input:checked + span {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.35);
}

.goal-submit-button {
    margin-top: 10px;
}

.goal-message {
    min-height: 22px;
    margin-top: 12px;
    font-weight: 600;
}

.goal-message-success {
    color: #2f855a;
}

.goal-message-error {
    color: #c53030;
}

.goal-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-card {
    background: rgba(247, 250, 252, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 18px 20px;
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.08);
}

.goal-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.goal-card-header-text h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.goal-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(66, 153, 225, 0.12);
    color: #2b6cb0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.goal-delete-button {
    background: rgba(229, 62, 62, 0.12);
    color: #c53030;
    border: 1px solid rgba(229, 62, 62, 0.35);
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goal-delete-button:hover {
    background: #e53e3e;
    color: #fff;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.35);
}

.goal-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #4a5568;
}

.goal-status-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.goal-status-button {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.goal-status-button.not-started {
    background: rgba(229, 62, 62, 0.12);
    color: #c53030;
    border-color: rgba(229, 62, 62, 0.3);
}

.goal-status-button.not-started.active {
    background: #e53e3e;
    color: #fff;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.35);
}

.goal-status-button.progressing {
    background: rgba(214, 158, 46, 0.15);
    color: #b7791f;
    border-color: rgba(214, 158, 46, 0.35);
}

.goal-status-button.progressing.active {
    background: #d69e2e;
    color: #fff;
    box-shadow: 0 6px 20px rgba(214, 158, 46, 0.35);
}

.goal-status-button.proficient {
    background: rgba(56, 161, 105, 0.15);
    color: #2f855a;
    border-color: rgba(56, 161, 105, 0.35);
}

.goal-status-button.proficient.active {
    background: #38a169;
    color: #fff;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.35);
}

.goal-status-button:hover {
    transform: translateY(-1px);
}

.goal-empty-state {
    background: rgba(237, 242, 247, 0.65);
    border: 1px dashed rgba(160, 174, 192, 0.7);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #4a5568;
}

.goal-empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 1fr;
        grid-template-areas:
            "user-info"
            "progress-bar"
            "sidebar"
            "main-content";
    }

    .sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-button {
        min-width: 120px;
    }

    .goals-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .skill-header {
        flex: none;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .skill-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-button {
        width: 100%;
        max-width: 200px;
    }
    
    .skill-resources {
        border-left: none;
        border-top: 2px solid #e2e8f0;
        padding-left: 0;
        padding-top: 15px;
    }
    
    .resources-list {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .search-results {
        text-align: center;
    }

    .goal-status-buttons {
        flex-direction: column;
    }

    .goal-status-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .login-card {
        padding: 25px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .skill-item {
        padding: 20px;
    }
}

/* ===== RESOURCE MANAGEMENT MODAL STYLES ===== */
.resources-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.resources-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.resources-modal-container {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.resources-modal-overlay.active .resources-modal-container {
    transform: scale(1);
}

.resources-modal-header {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resources-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-close-btn:hover {
    opacity: 0.8;
}

.resources-modal-content {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.resources-section {
    margin-bottom: 40px;
}

.resources-section h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.add-resource-section h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.resources-loading {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 1.1rem;
}

.resources-error {
    text-align: center;
    padding: 20px;
    background: #feb2b2;
    color: #742a2a;
    border-radius: 8px;
    border: 1px solid #f56565;
}

.no-resources {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 1.1rem;
    background: rgba(247, 250, 252, 0.8);
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.resource-card {
    background: rgba(247, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: #4299e1;
    box-shadow: 0 4px 20px rgba(66, 153, 225, 0.1);
}

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

.resource-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.resource-actions {
    display: flex;
    gap: 8px;
}

.resource-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-action-btn.edit-btn {
    background: #4299e1;
    color: white;
}

.resource-action-btn.edit-btn:hover {
    background: #3182ce;
}

.resource-action-btn.delete-btn {
    background: #e53e3e;
    color: white;
}

.resource-action-btn.delete-btn:hover {
    background: #c53030;
}

.resource-action-btn.save-btn {
    background: #38a169;
    color: white;
}

.resource-action-btn.save-btn:hover {
    background: #2f855a;
}

.resource-action-btn.cancel-btn {
    background: #6c757d;
    color: white;
}

.resource-action-btn.cancel-btn:hover {
    background: #5a6268;
}

.resource-url {
    margin-bottom: 10px;
}

.resource-url a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.resource-url a:hover {
    text-decoration: underline;
}

.resource-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.resource-edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-edit-form .edit-name,
.resource-edit-form .edit-url {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.resource-edit-form .edit-name:focus,
.resource-edit-form .edit-url:focus {
    outline: none;
    border-color: #4299e1;
}

.resource-edit-form .edit-description {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.resource-edit-form .edit-description:focus {
    outline: none;
    border-color: #4299e1;
}

.edit-actions {
    display: flex;
    gap: 10px;
}

.add-resource-form {
    background: rgba(247, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
}

.resource-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1001;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.resource-notification.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #48bb78;
}

.resource-notification.error {
    background: #feb2b2;
    color: #742a2a;
    border: 1px solid #f56565;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN FOR MODAL ===== */
@media (max-width: 768px) {
    .resources-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .resources-modal-header {
        padding: 15px 20px;
    }
    
    .resources-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .resources-modal-content {
        padding: 20px;
    }
    
    .resource-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .resource-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .edit-actions {
        flex-direction: column;
    }
    
    .resource-action-btn {
        width: 100%;
    }
}


.loading, .error, .no-wordlists {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 1.1rem;
}

.error {
    background: #feb2b2;
    color: #742a2a;
    border-radius: 8px;
    border: 1px solid #f56565;
}

.no-wordlists {
    background: rgba(247, 250, 252, 0.8);
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
}

/* Practice Mode Styles */
.practice-setup {
    max-width: 800px;
    margin: 0 auto;
}

.practice-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.practice-option-card {
    background: rgba(247, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.practice-option-card:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.practice-option-card.active {
    border-color: #38a169;
    background: rgba(200, 246, 213, 0.3);
}

.practice-option-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.practice-option-card p {
    color: #4a5568;
    margin-bottom: 15px;
}

.option-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #38a169;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.setup-section {
    background: rgba(247, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.setup-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.role-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-option:hover {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
}

.role-option input[type="radio"] {
    margin: 0;
}

.speed-slider, .word-count-slider {
    width: 100%;
    margin-bottom: 10px;
}

.slider-value {
    text-align: center;
    color: #4a5568;
    font-weight: 500;
}

.slider-value span {
    color: #2d3748;
    font-weight: 600;
}

/* Partner Practice Styles */
.partner-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-step {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-step.active {
    opacity: 1;
    border-color: #4299e1;
}

.partner-step h4 {
    color: #2d3748;
    margin-bottom: 15px;
}

.partner-search {
    position: relative;
    margin-bottom: 20px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.partner-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.partner-result:hover {
    background: rgba(66, 153, 225, 0.1);
}

.partner-result:last-child {
    border-bottom: none;
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.partner-info strong {
    color: #2d3748;
}

.partner-info small {
    color: #718096;
}

.partner-action button {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.search-error, .search-no-results {
    padding: 16px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

.session-info {
    background: rgba(247, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.session-info p {
    margin: 5px 0;
    color: #4a5568;
}

.session-info strong {
    color: #2d3748;
}

.partner-ready {
    text-align: center;
}

.role-assignment {
    background: rgba(56, 161, 105, 0.1);
    border: 2px solid #48bb78;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.role-assignment p {
    margin: 5px 0;
    color: #22543d;
}

.requests-section {
    background: rgba(247, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.requests-section h3 {
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.partner-request {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.partner-request:last-child {
    margin-bottom: 0;
}

.request-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-info strong {
    color: #2d3748;
}

.request-info small {
    color: #718096;
}

.request-actions {
    display: flex;
    gap: 10px;
}

.request-actions button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .student-card {
        flex-direction: column;
        gap: 8px;
    }
    
    .practice-options {
        grid-template-columns: 1fr;
    }
    
    .partner-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .partner-action {
        align-self: flex-end;
    }
    
    .partner-request {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .request-actions {
        align-self: flex-end;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.hidden { display: none; }
.visible { display: block; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FILTER AND UNIT STYLES ===== */
.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.status-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: #e2e8f0;
    color: #4a5568;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #cbd5e0;
}

.filter-btn.active {
    background: #4299e1;
    color: white;
    border-color: #3182ce;
}

.filter-btn.active:hover {
    background: #3182ce;
}

.unit-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.unit-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.skill-unit-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #4299e1;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: normal;
}