/* COSPELL Shared Styles */

/* Global Font */
* {
    font-family: "Century Gothic", "CenturyGothic", AppleGothic, sans-serif;
}

/* Brand Colors */
.cospell-yellow {
    background-color: #ffd700;
}
.cospell-teal {
    background-color: #20b2aa;
}
.cospell-gray {
    color: #666;
}
.cospell-orange {
    color: #ff8c00;
}

/* Logo and Brand */
.logo-circle {
    width: 80px;
    height: 80px;
    background-color: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Header and Navigation */

.navbar-brand {
    cursor: pointer;
}

.login-btn {
    background-color: #ffd700;
    border: none;
    color: #333;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 25px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #ffc700;
    transform: translateY(-2px);
    color: #333;
}

/* Breadcrumb Navigation */
.breadcrumb-bar {
    background-color: #20b2aa;
    padding: 15px 0;
}

.breadcrumb-item {
    background-color: #ffd700;
    color: #333;
    padding: 8px 20px;
    font-weight: bold;
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 50%,
        calc(100% - 20px) 100%,
        0 100%
    );
    margin-right: 10px;
    display: inline-block;
    cursor: pointer;
}

/* XXX Hack to remove / - needs work */
.breadcrumb-item + .breadcrumb-item:before {
    content: " ";
}

.breadcrumb-arrow {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0 10px;
}

/* Common Layout Elements */
.teal-bar {
    background-color: #20b2aa;
    height: 60px;
}

.class-header {
    background-color: #e8e8e8;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.class-circle {
    width: 40px;
    height: 40px;
    background-color: #ffd700;
    border-radius: 50%;
    margin-right: 20px;
}

.class-circle.small {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

/* Class and Student Rows */
.class-row {
    background-color: #e8e8e8;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Special case for click */
.class-row-live {
}

.class-row:hover {
    background-color: #d8d8d8;
}

.class-row.selected {
    background-color: #d0d0d0;
    border: 2px solid #ffd700;
}

.student-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.student-count {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.student-icon {
    color: #ffd700;
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Expand/Collapse Icons */
.expand-icon {
    color: #ffd700;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

/* Feature Cards (Homepage) */
.feature-card {
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
}

/* Student Names and Scores */
.student-name {
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    min-width: 150px;
    font-weight: bold;
    margin-right: 15px;
}

.student-1 {
    background-color: #dc3545;
}
.student-2 {
    background-color: #0d6efd;
}
.student-3 {
    background-color: #198754;
}
.student-4 {
    background-color: #fd7e14;
}

.student-header {
    background-color: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Score Badges */
.score-badge {
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

.score-low {
    background-color: #dc3545;
}
.score-medium {
    background-color: #fd7e14;
}
.score-good {
    background-color: #198754;
}
.score-high {
    background-color: #0d6efd;
}
.score-excellent {
    background-color: #28a745;
    color: white;
}
.score-fair {
    background-color: #ffc107;
    color: black;
}
.score-needs-improvement {
    background-color: #fd7e14;
    color: white;
}

/* Test Assignment */
.test-assignment {
    background-color: #666;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-left: 20px;
}

/* Buttons */
.assign-btn {
    background-color: #20b2aa;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.assign-btn:hover {
    background-color: #1a9999;
    transform: translateY(-2px);
}

.sidebar-btn {
    background-color: #2c5f71;
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.sidebar-btn:hover {
    background-color: #1a3c47;
    color: white;
}

.sidebar-btn.active {
    background-color: #ffd700;
    color: #333;
}

/* Tables and Analysis */
.analysis-table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.results-table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-header {
    background-color: #20b2aa;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
}

.module-header {
    background-color: #333;
    color: white;
    padding: 12px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.word-row {
    border-bottom: 1px solid #dee2e6;
}

.student-row.table-row {
    border-bottom: 1px solid #dee2e6;
}

.word-cell {
    padding: 12px;
    text-align: center;
    border-right: 1px solid #dee2e6;
}

.word-cell:last-child {
    border-right: none;
}

.student-cell {
    padding: 12px;
    text-align: center;
    border-right: 1px solid #dee2e6;
    font-weight: bold;
}

.student-name.cell {
    background-color: #f8f9fa;
    text-align: left;
    font-weight: bold;
}

/* Table Cell Backgrounds */
.target-word {
    background-color: #e9f7ef;
    font-weight: bold;
}

.pre-test {
    background-color: #fdf2e9;
}

.analysis {
    background-color: #eaf4f4;
    font-size: 0.9rem;
}

.post-test {
    background-color: #e8f4fd;
}

.growth {
    background-color: #e7f3ff;
    font-weight: bold;
}

.summary-row {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
}

/* Text Styling */
.incorrect-spelling {
    color: #dc3545;
    font-style: italic;
}

.correct-spelling {
    color: #198754;
}

/* Notes and Alerts */
.continue-note {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-btn {
        padding: 8px 16px;
        margin: 0 5px;
        font-size: 0.9rem;
    }

    .breadcrumb-item {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .class-row {
        padding: 15px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Main Navigation */
.main-nav {
    background-color: #20b2aa;
    padding: 0;
}

.main-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 18px 25px;
    border: none;
    background: transparent;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.main-nav .nav-link:hover {
    background-color: #1a9999;
}

.main-nav .dropdown-menu {
    border-radius: 0;
    border: none;
    margin-top: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-nav .dropdown-item {
    padding: 12px 20px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.main-nav .dropdown-item:hover {
    background-color: #f8f9fa;
}

.main-nav .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}
