/* Speech Craft Challenge CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

/* Login Page Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.login-logo img, .logo {
    max-width: 300px;
    margin-bottom: 20px;
}

.login-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.form-select, .form-input {
    height: 52px;
    padding: 0 15px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    font-size: 16px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    background-color: #ffffff;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
    outline: none;
}

.form-select {
    margin: 0;
}

.form-input {
    margin: 0;
}

.submit-button, .cookie-button {
    font-size: 1.1rem;
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.submit-button {
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.cookie-button {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.cookie-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(108, 117, 125, 0.4);
}

/* Main Challenge Page Styles */
.container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
}

.logo img {
    height: 60px;
}

.info-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.room-header {
    background-color: #06b6d4;
    color: white;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    flex: 1;
}

.judge-info {
    background-color: #06b6d4;
    color: white;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    flex: 1;
}

.assessment-link {
    background-color: #9333ea;
    color: white;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    flex: 1;
}

.assessment-link a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.assessment-link:hover {
    background-color: #7e22ce;
}

/* Timer Section */
.timer-section {
    margin: 20px 0;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #eaeccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer {
    font-size: 48px;
    font-weight: bold;
    font-family: monospace;
    display: none;
    color: #f97316;
}

#prepTimer {
    color: #0ea5e9;
}

#talkTimer {
    color: #f97316;
}

.time-up {
    color: #dc2626;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

.timer-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.timer-button {
    padding: 12px 20px;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.think-button {
    background-color: #0ea5e9;
}

.think-button:hover {
    background-color: #0284c7;
}

.reset-button {
    background-color: #ef4444;
}

.reset-button:hover {
    background-color: #dc2626;
}

.talk-button {
    background-color: #f97316;
}

.talk-button:hover {
    background-color: #ea580c;
}

/* Table Styles */
.table-container {
    margin-bottom: 20px;
    overflow-x: auto;
}

.speech-craft-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #e0faff;
    border-radius: 8px;
    overflow: hidden;
}

.speech-craft-table thead {
    background-color: #f97316;
    color: white;
}

.speech-craft-table th {
    padding: 12px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border: none;
}

.speech-craft-table th.text-left {
    text-align: left;
}

.speech-craft-table td {
    padding: 4px 15px;
    border-bottom: 1px solid white;
    vertical-align: middle;
}

.speech-craft-table tr:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

/* Team and Student Styles */
.team-topic {
    color: #7f1d1d;
    font-weight: bold;
    font-size: 18px;
}

.affirmative-team, .negative-team {
    font-weight: bold;
    text-align: center;
}

.affirmative-team {
    color: #7f1d1d;
}

.negative-team {
    color: #0c4a6e;
}

.affirmative-student {
    color: #7f1d1d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.negative-student {
    color: #0c4a6e;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Checkbox Styles */
.student-checkbox, .Check-Topic {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Instructions Button */
.instructions-button {
    background-color: #fcd34d;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin: 20px auto;
    border-radius: 8px;
    cursor: pointer;
    max-width: 600px;
}

.instructions-button:hover {
    background-color: #fbbf24;
}

/* Footer */
.footer-warning {
    text-align: center;
    padding: 15px;
    background-color: white;
    color: #059669;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Error Messages */
#access-denied, #password-incorrect, #error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    margin: 15px auto;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .timer-buttons {
        flex-direction: column;
    }

    .speech-craft-table {
        font-size: 14px;
    }

    .speech-craft-table th,
    .speech-craft-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .timer {
        font-size: 36px;
    }

    .time-up {
        font-size: 24px;
    }

    .speech-craft-table {
        font-size: 12px;
    }
}
