/* * Stylesheet for Academic Competition Manager
 * Prefix: aiginex-an-cmpt-
 */

/* --- Admin Dashboard --- */
.aiginex-an-cmpt-admin-dashboard-wrapper {
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #ccd0d4;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Tab Navigation */
.aiginex-an-cmpt-tabs-nav {
    display: flex;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ccd0d4;
    background: #f6f7f7;
}
.aiginex-an-cmpt-tabs-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.aiginex-an-cmpt-tabs-nav .aiginex-an-cmpt-tab-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 3px solid transparent;
}
.aiginex-an-cmpt-tabs-nav .aiginex-an-cmpt-tab-link.active {
    background: #fff;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

/* Tab Content */
.aiginex-an-cmpt-tabs-content {
    padding: 20px;
}
.aiginex-an-cmpt-tab-panel {
    display: none; /* Hidden by default */
}
.aiginex-an-cmpt-tab-panel.active {
    display: block; /* Shown when active */
}

/* Form Styling */
.aiginex-an-cmpt-fieldset {
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.aiginex-an-cmpt-fieldset legend {
    font-weight: 600;
    padding: 0 5px;
    margin-left: 10px;
}
.aiginex-an-cmpt-form-row {
    margin-bottom: 10px;
}
.aiginex-an-cmpt-form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.aiginex-an-cmpt-form-row input[type="text"],
.aiginex-an-cmpt-form-row input[type="url"],
.aiginex-an-cmpt-form-row input[type="number"],
.aiginex-an-cmpt-form-row select,
.aiginex-an-cmpt-form-row textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    box-sizing: border-box; /* Important */
}

/* Buttons */
.aiginex-an-cmpt-button-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.aiginex-an-cmpt-button-primary:hover {
    background: #1d6096;
}

.aiginex-an-cmpt-button-action {
    background: #d63638;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}
.aiginex-an-cmpt-button-action:hover {
    background: #b02a2c;
}

.aiginex-an-cmpt-button-secondary {
    background: #f6f7f7;
    color: #2c3e50;
    border: 1px solid #ccd0d4;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* Status Messages */
.aiginex-an-cmpt-status-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    display: none; /* Hidden by default */
}
.aiginex-an-cmpt-status-message.success {
    background: #e0f2df;
    border: 1px solid #a3d9a5;
    color: #2d5b2d;
    display: block;
}
.aiginex-an-cmpt-status-message.error {
    background: #fdeaea;
    border: 1px solid #f9bdbb;
    color: #9e2a2b;
    display: block;
}

/* --- Student Display --- */
#aiginex-an-cmpt-display-wrapper {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #2c3e50;
    color: #ecf0f1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.aiginex-an-cmpt-display-state {
    width: 90%;
}
.aiginex-an-cmpt-display-state h1 {
    font-size: 4vw;
}
.aiginex-an-cmpt-display-state h2 {
    font-size: 3vw;
}
#aiginex-an-cmpt-student-photo {
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    border: 10px solid #fff;
}
#aiginex-an-cmpt-timer-display {
    font-size: 6vw;
    font-weight: 700;
    color: #f1c40f;
}
#aiginex-an-cmpt-question-media img {
    max-width: 80%;
    height: auto;
    margin-top: 20px;
}
#aiginex-an-cmpt-question-media iframe {
    width: 80%;
    height: 60vh;
    border: none;
}