* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Landing Page Styles */
.landing-content {
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.brand-name {
    font-size: 4rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(30, 60, 114, 0.2);
}

.brand-tagline {
    font-size: 1.5rem;
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.main-title {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
}

.options-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 45px 70px;
    border-radius: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(30, 60, 114, 0.6);
}

.option-btn:active {
    transform: translateY(-2px);
}

.option-icon {
    font-size: 3rem;
}

.option-text {
    font-weight: 600;
}

/* Test Page Styles */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f0fe;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(to right, #f8f9ff, transparent);
    padding: 20px;
    border-radius: 12px;
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.candidate-label {
    font-weight: 600;
    color: #666;
}

.candidate-name-display {
    font-weight: 700;
    color: #1e3c72;
    font-size: 1.1rem;
}

.brand-header {
    flex: 1;
}

.brand-name-small {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.timer-container, .progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.timer-label, .progress-label {
    font-weight: 600;
    color: #666;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
    border-radius: 10px;
    border: 2px solid #d0e3ff;
    min-width: 100px;
    text-align: center;
}

.timer.warning {
    color: #ff6b6b;
    background: #ffe0e0;
}

#progress {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a5298;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
    border-radius: 10px;
    border: 2px solid #d0e3ff;
    min-width: 80px;
    text-align: center;
}

.test-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.test-content::-webkit-scrollbar {
    width: 8px;
}

.test-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.test-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.question-block {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    border-radius: 15px;
    border-left: 5px solid #2a5298;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
    transition: all 0.3s ease;
}

.question-block:hover {
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.15);
    transform: translateX(5px);
}

.question-number {
    font-size: 0.9rem;
    color: #2a5298;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* MCQ Styles */
.mcq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcq-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcq-option:hover {
    border-color: #2a5298;
    background: linear-gradient(to right, #f0f5ff, #ffffff);
    transform: translateX(5px);
}

.mcq-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.mcq-option label {
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.mcq-option.selected {
    border-color: #2a5298;
    background: linear-gradient(to right, #e8f0fe, #f0f5ff);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.2);
}

/* Descriptive Question Styles */
.descriptive-answer {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.descriptive-answer:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.test-actions {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.submit-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 60, 114, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Results Page Styles */
.results-content {
    text-align: center;
}

.results-container {
    padding: 40px 20px;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.result-title.pass {
    color: #51cf66;
}

.result-title.fail {
    color: #ff6b6b;
}

.result-message {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.score-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin: 30px 0;
    padding: 25px 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    display: inline-block;
    border: 3px solid #e8f0fe;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.score-breakdown {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.score-breakdown h3 {
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.score-item:last-child {
    border-bottom: none;
}

.score-label {
    color: #666;
    font-weight: 600;
}

.score-value {
    color: #333;
    font-weight: 700;
}

.back-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

/* Review Notice Styles */
.review-notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.review-message {
    color: #856404;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.review-message strong {
    color: #6c5500;
}

/* Next Step Button */
.next-step {
    margin-top: 30px;
}

.next-btn {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(81, 207, 102, 0.4);
    letter-spacing: 0.5px;
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(81, 207, 102, 0.6);
}

/* Practical Test Styles */
.practical-content {
    padding: 20px 0;
}

.practical-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f0fe;
}

.practical-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 10px;
}

.practical-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.practical-question-block {
    margin-bottom: 40px;
    padding: 35px;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    border-radius: 15px;
    border-left: 5px solid #2a5298;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.practical-question-block .question-text {
    white-space: pre-line;
    line-height: 1.8;
}

/* File Upload Styles */
.file-upload-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    border-radius: 15px;
    border: 2px dashed #2a5298;
    text-align: center;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 20px;
    transition: all 0.3s ease;
}

.file-label:hover {
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
}

.upload-text {
    font-size: 1.2rem;
    color: #2a5298;
    font-weight: 600;
}

#code-file {
    display: none;
}

.file-list {
    margin-top: 20px;
    text-align: left;
}

.file-list-title {
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #2a5298;
    background: #f8f9ff;
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
}

.uploaded-files-info {
    background: #f8f9ff;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.uploaded-files-info h3 {
    color: #2a5298;
    margin-bottom: 15px;
    text-align: center;
}

.files-list {
    list-style: none;
    padding: 0;
}

.files-list li {
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #2a5298;
}

.practical-review {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-color: #51cf66;
}

.practical-review .review-message {
    color: #2e7d32;
}

.practical-review .review-message strong {
    color: #1b5e20;
}

/* Instructions Page Styles */
.instructions-content {
    max-width: 900px;
    margin: 0 auto;
}

.instructions-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e8f0fe;
}

.instructions-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 10px;
}

.instructions-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.instructions-body {
    margin: 40px 0;
}

.instruction-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    border-radius: 15px;
    border-left: 5px solid #2a5298;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
    transition: all 0.3s ease;
}

.instruction-section:hover {
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.15);
    transform: translateX(5px);
}

.instruction-section.warning-section {
    border-left-color: #ff9800;
    background: linear-gradient(to right, #fff8e6, #ffffff);
}

.instruction-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
    border-radius: 12px;
    border: 2px solid #d0e3ff;
}

.warning-section .instruction-icon {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffd700;
}

.instruction-content {
    flex: 1;
}

.instruction-heading {
    font-size: 1.4rem;
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 12px;
}

.instruction-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.instruction-text strong {
    color: #1e3c72;
    font-weight: 700;
}

.test-types-list {
    margin: 15px 0 0 20px;
    padding: 0;
    list-style-position: outside;
}

.test-types-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

.test-types-list li strong {
    color: #1e3c72;
}

.warning-list {
    margin: 15px 0 0 20px;
    padding: 0;
    list-style: none;
}

.warning-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    position: relative;
    padding-left: 25px;
}

.warning-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Name Input Section */
.name-input-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid #e8f0fe;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.name-input-container {
    max-width: 600px;
    margin: 0 auto;
}

.name-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c72;
}

.name-icon {
    font-size: 1.5rem;
}

.name-label-text {
    flex: 1;
}

.name-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #d0e3ff;
    border-radius: 10px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.name-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.name-input::placeholder {
    color: #999;
}

.name-error {
    margin-top: 10px;
    padding: 10px 15px;
    background: #ffe0e0;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    color: #c92a2a;
    font-size: 0.95rem;
    font-weight: 500;
}

.instructions-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #e8f0fe;
}

.back-to-home-btn {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-to-home-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.start-test-btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
    letter-spacing: 0.5px;
}

.start-test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 60, 114, 0.6);
}

.start-test-btn:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .brand-name {
        font-size: 2.8rem;
    }

    .brand-tagline {
        font-size: 1.2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .option-btn {
        padding: 30px 40px;
        min-width: 200px;
    }

    .test-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .result-title {
        font-size: 2rem;
    }

    .score-display {
        font-size: 2.5rem;
    }

    .instructions-title {
        font-size: 2rem;
    }

    .instructions-subtitle {
        font-size: 1rem;
    }

    .instruction-section {
        flex-direction: column;
        gap: 15px;
    }

    .instruction-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .instruction-heading {
        font-size: 1.2rem;
    }

    .instruction-text {
        font-size: 1rem;
    }

    .instructions-actions {
        flex-direction: column;
    }

    .back-to-home-btn,
    .start-test-btn {
        width: 100%;
    }

    .name-input-section {
        padding: 20px;
    }

    .name-label {
        font-size: 1.1rem;
    }

    .name-input {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .candidate-info {
        width: 100%;
        margin-bottom: 10px;
    }

    .test-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

