/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
    animation: gradient-shift 20s ease infinite;
    pointer-events: none;
}

@keyframes gradient-shift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
}

.container {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e07a5f 0%, #d4a574 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: 0 8px 32px rgba(224, 122, 95, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.logo-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.logo h1 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Box */
.login-box, .instructions-box, .confirmation-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
}

.login-box::before, .instructions-box::before, .confirmation-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.5), rgba(212, 165, 116, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-box h2, .instructions-box h2 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input {
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: #e07a5f;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1),
                0 4px 12px rgba(224, 122, 95, 0.2);
}

/* Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, #e07a5f 0%, #d4a574 100%);
    color: white;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(224, 122, 95, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 16px 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #e07a5f 0%, #c85a43 100%);
    color: white;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.4);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(224, 122, 95, 0.5);
}

.help-text {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Instructions Page Specific */
.instructions-box {
    max-width: 720px;
}

.exam-info {
    color: rgba(255, 255, 255, 0.7);
    margin: 6px 0;
    font-size: 15px;
}

.instructions-content {
    margin: 32px 0;
}

.instructions-content h3 {
    color: #ffffff;
    margin: 28px 0 14px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.instructions-content ul {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.instructions-content ul li {
    margin: 10px 0;
    font-size: 14px;
}

.warning-box {
    background: rgba(224, 122, 95, 0.15);
    border-left: 3px solid #e07a5f;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.consent-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e07a5f;
}

/* Exam Page */
.exam-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 0;
    display: block;
}

.monitoring-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.monitoring-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    background: linear-gradient(135deg, #e07a5f, #c85a43);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse-glow 2s ease-in-out infinite;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.5);
}

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(224, 122, 95, 0.5);
    }
    50% { 
        opacity: 0.85;
        box-shadow: 0 0 30px rgba(224, 122, 95, 0.7);
    }
}

.monitor-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.exam-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

/* Glassmorphic Sidebar */
.exam-sidebar {
    width: 340px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.webcam-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.webcam-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e07a5f 0%, #d4a574 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.camera-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.95;
}

.webcam-placeholder p {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.recording-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.student-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.student-info h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.student-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 6px 0;
}

.question-navigator h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.q-btn {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
}

.q-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e07a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.q-btn.active {
    background: linear-gradient(135deg, #e07a5f, #d4a574);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.4);
}

.q-btn.answered {
    background: linear-gradient(135deg, #81b29a, #6fa889);
    color: white;
    border-color: transparent;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.legend span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.legend-box.answered {
    background: linear-gradient(135deg, #81b29a, #6fa889);
    border-color: transparent;
}

.legend-box.current {
    background: linear-gradient(135deg, #e07a5f, #d4a574);
    border-color: transparent;
}

.security-status {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.security-status h4 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.status-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.status-icon.green {
    background: linear-gradient(135deg, #81b29a, #6fa889);
    color: white;
    box-shadow: 0 2px 8px rgba(129, 178, 154, 0.4);
}

/* Exam Content */
.exam-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: transparent;
}

.warning-banner {
    background: rgba(224, 122, 95, 0.15);
    border-left: 3px solid #e07a5f;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(224, 122, 95, 0.3);
}

.question-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-header h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.question-type {
    background: rgba(224, 122, 95, 0.2);
    color: #e07a5f;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(224, 122, 95, 0.3);
}

.question-text {
    margin: 28px 0;
}

.question-text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 500;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0;
}

.option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #e07a5f;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.2);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    cursor: pointer;
    accent-color: #e07a5f;
}

.option-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.question-navigation button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.exam-actions {
    margin-top: 32px;
    text-align: center;
}

/* Confirmation Page */
.confirmation-box {
    padding: 56px 48px;
    text-align: center;
    max-width: 640px;
}

.success-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #81b29a 0%, #6fa889 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 52px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(129, 178, 154, 0.4);
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #81b29a, #6fa889);
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

.confirmation-box h1 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.confirmation-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 32px;
}

.confirmation-details {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 16px;
    margin: 32px 0;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
}

.confirmation-code {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    background: rgba(224, 122, 95, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    color: #e07a5f;
    border: 1px solid rgba(224, 122, 95, 0.3);
}

.info-box {
    background: rgba(129, 178, 154, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    margin: 28px 0;
    text-align: left;
    border: 1px solid rgba(129, 178, 154, 0.2);
}

.info-box h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.info-box ul {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.info-box ul li {
    margin: 10px 0;
    font-size: 14px;
}

.recording-notice {
    background: rgba(129, 178, 154, 0.15);
    border: 1px solid rgba(129, 178, 154, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border-radius: 12px;
    margin: 28px 0;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exam-container {
        flex-direction: column;
    }
    
    .exam-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .monitoring-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .exam-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Ultra-Modern Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 44px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.5), rgba(212, 165, 116, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.modal-content h2 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.6;
}

.submit-summary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin: 28px 0;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-summary p {
    color: rgba(255, 255, 255, 0.95);
    margin: 12px 0;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.submit-summary strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-buttons button {
    flex: 1;
}

/* Warning Modal */
.warning-modal-content {
    border-top: 3px solid #e07a5f;
}

.warning-icon {
    width: 84px;
    height: 84px;
    background: rgba(224, 122, 95, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    border: 1px solid rgba(224, 122, 95, 0.3);
}

/* Locked/Unlocked States */
.btn-warning.locked,
.btn-primary.locked {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-warning.locked:hover,
.btn-primary.locked:hover {
    transform: none;
    box-shadow: none;
}

.btn-warning.unlocked {
    background: linear-gradient(135deg, #e07a5f 0%, #c85a43 100%);
    cursor: pointer;
    animation: unlock-shine 0.6s ease;
}

.btn-primary.unlocked {
    background: linear-gradient(135deg, #e07a5f 0%, #d4a574 100%);
    cursor: pointer;
    animation: unlock-shine 0.6s ease;
}

@keyframes unlock-shine {
    0% { 
        filter: brightness(1);
    }
    50% { 
        filter: brightness(1.2);
    }
    100% { 
        filter: brightness(1);
    }
}

.lock-icon {
    font-size: 16px;
    margin-right: 8px;
}

.exam-actions {
    margin-top: 32px;
    text-align: center;
}