/* Unubiko Scholarship Portal - Brand Identity CSS */

:root {
    --unubiko-teal: #008080;        /* Primary Brand Color */
    --unubiko-teal-light: #e6f2f2;  /* Selection Background */
    --unubiko-brown: #4a4a4a;       /* Typography & Headers */
    --unubiko-gold: #c5a059;        /* Accents/Buttons */
    --error-red: #d9534f;
    --success-green: #28a745;
    --bg-gray: #f4f7f6;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-gray);
    color: var(--unubiko-brown);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Card Styling */
.card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 5px solid var(--unubiko-teal);
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Typography */
.logo-text-brown {
    color: var(--unubiko-brown);
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    font-size: 2rem;
}

.logo-text-teal {
    color: var(--unubiko-teal);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: -5px;
    text-transform: uppercase;
}

/* Input Fields */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--unubiko-teal);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

/* Buttons */
button {
    width: 100%;
    padding: 14px;
    background-color: var(--unubiko-teal);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #006666;
}

.teal-btn {
    background-color: var(--unubiko-teal);
}

/* Question Styling */
.question-text {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--unubiko-brown);
}

.option-item {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    cursor: pointer;
    background: #fdfdfd;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--unubiko-teal);
    background: var(--unubiko-teal-light);
}

.option-item.selected {
    background: var(--unubiko-teal);
    color: white;
    border-color: var(--unubiko-teal);
}

/* Proctoring Feedback */
#volume-container {
    background: #e0e0e0;
    border: 1px solid #ccc;
}

#proctor-toast {
    font-family: sans-serif;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Print Styling */
@media print {
    body { background: white; }
    .card { box-shadow: none; border: 1px solid #eee; width: 100%; max-width: 100%; }
    .no-print { display: none; }
}

/* Violation Alert (Toast) */
#proctor-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #d9534f; /* Unubiko Error Red */
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    z-index: 99999; /* Ensure it is above everything */
    font-weight: bold;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 300px;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Face Guide Animation */
#face-guide {
    transition: border-color 0.3s ease;
}

/* Ensure the camera preview doesn't distort */
#proctor-video {
    background: #000;
    transform: scaleX(-1); /* Flips camera so it acts like a mirror */
}

#cam-status, #mic-status {
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    transition: background 0.3s ease;
}

/* Pulsing effect for the health dots */
@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

#cam-status[style*="background: rgb(40, 167, 69)"], 
#mic-status[style*="background: rgb(40, 167, 69)"] {
    animation: pulse-green 2s infinite ease-in-out;
}

.question-box { animation: fadeIn 0.5s; }
.option-item {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.option-item:hover { background: #f0f8f8; border-color: #008080; }
.option-item.selected { 
    background: #008080; 
    color: white; 
    border-color: #004d4d; 
    font-weight: bold;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Watermark Overlay for the Exam View */
#exam-view::after {
    content: "UNUBIKO SECURE PORTAL - DO NOT COPY";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.03); /* Extremely faint */
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}