/* styles.css */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #cbd5e1;
    
    /* Dark mode variables */
    --dark-primary-color: #7c7fff;
    --dark-secondary-color: #6a5aff;
    --dark-background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --dark-card-bg: #1e293b;
    --dark-text-color: #e2e8f0;
    --dark-border-color: #334155;
}

/* Dark Mode */
.dark-mode {
    --primary-color: var(--dark-primary-color);
    --secondary-color: var(--dark-secondary-color);
    --background: var(--dark-background);
    --card-bg: var(--dark-card-bg);
    --text-color: var(--dark-text-color);
    --border-color: var(--dark-border-color);
}

body {
    background: var(--background);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

/* Base Styles */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text-color);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Dialog Styles */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    z-index: 1000;
}

.dialog-content {
    background: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.dialog .close {
    cursor: pointer;
    float: right;
    font-size: 24px;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dialog .close:hover {
    opacity: 1;
}

.savebtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.savebtn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Tabs Container */
.application-tabs {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    align-items:  ;
}

/* Tab Buttons */
.tab-button {
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.tab-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Section Containers */
#job-application-content,
#lor-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Form Elements */
.lor-inputs {
    max-width: 100%;
    margin: 0 auto;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

input, textarea, select {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* LOR Specific Styles */
.academic-type-selector {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recommendation-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Output Sections */
#application-output,
#lor-output {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Buttons */
.button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dialog-content {
        width: 90%;
        margin: 20% auto;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .application-tabs {
        padding: 0 0.5rem;
    }

    .tab-button {
        margin: 0.25rem;
        padding: 0.75rem 1rem;
    }

    #job-application-content,
    #lor-content {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Add/Update these styles for Job Application download buttons */
#download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

#email-download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

#download-buttons button {
    flex: 1;
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#email-download-buttons button {
    flex: 1;
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#download-buttons button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

#email-download-buttons button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Remove all inline styles from HTML */
#api-key-dialog,
/* #api-key-message, */
#application-tabs,
#job-application-content {
    display: none;
}

.api-key-button {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.api-key-button:hover {
    background-color: #5849c2;
}

.letter-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.letter-inputs select {
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}

.letter-inputs textarea {
    min-height: 100px;
    resize: vertical;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
    }
}

.template-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.template-selector label {
    font-weight: 500;
    min-width: 100px;
    margin: 0;
    display: flex;
    align-items: center;
}

.template-selector select {
    flex: 1;
    max-width: 300px;
    margin: 0;
    padding: 0.75rem;
    height: 40px;
}


#letter-output {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* History Dialog Styles */
.history-dialog .dialog-content {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.history-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.history-number {
    color: #64748b;
    font-size: 0.9rem;
}

.history-preview {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-load-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.history-load-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Add smooth scrollbar for history dialog */
.history-dialog .dialog-content::-webkit-scrollbar {
    width: 8px;
}

.history-dialog .dialog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.history-dialog .dialog-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.history-dialog .dialog-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.letter-heading {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.edit-instruction {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.resume-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

#resume-text {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.analysis-content {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.analysis-content h2,
.analysis-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.analysis-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.analysis-content li {
    margin-bottom: 0.5rem;
}

#resume-output {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

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

/* Add to end of file */
.interview-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.interview-question {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dark-mode .interview-question {
    background: var(--dark-card-bg, #2d3748);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.question-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    background: var(--hover-bg);
    border-radius: 12px;
}

.dark-mode .question-type {
    background: rgba(99, 102, 241, 0.1);
}

.question-number {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.5;
}

.answer-section {
    background: var(--hover-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.dark-mode .answer-section {
    background: rgba(255, 255, 255, 0.05);
}

.answer-label, .key-points-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.answer-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.key-points-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.key-points-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.key-points-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Interview Container */
.interview-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.dark-mode .interview-container {
    background: var(--dark-card-bg, #2d3748);
    border-color: var(--dark-border-color, #4a5568);
}

/* Download Button */
.interview-navigation button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.interview-navigation button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.dark-mode .interview-navigation button {
    background: var(--primary-color);
}

.dark-mode .interview-navigation button:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Analysis Content Styling */
.analysis-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.analysis-content h2 {
    color: var(--primary-color, #4a6fa5);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.report-body {
    line-height: 1.6;
    font-size: 1rem;
}

.report-body h3 {
    color: var(--primary-color, #4a6fa5);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.report-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.report-body li {
    margin-bottom: 0.5rem;
}

.report-body strong {
    font-weight: 600;
    color: #333;
}

/* Button styling */
.analysis-content .button {
    margin-top: 1.5rem;
    display: block;
    width: max-content;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color, #4a6fa5);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
}

.analysis-content .button:hover {
    background-color: var(--accent-color, #2c4c7c);
}

/* Add animation for report appearance */
.analysis-content {
    animation: fadeIn 0.5s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .analysis-content {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .analysis-content h2 {
        font-size: 1.5rem;
    }
    
    .report-body h3 {
        font-size: 1.2rem;
    }
}

/* Add to styles.css */
.email-response {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.email-header {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.email-content {
    white-space: pre-wrap;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.email-content pre {
    margin: 0;
    font-family: inherit;
}

.email-options {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.email-options .select-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.email-options label {
    font-weight: 500;
    color: var(--text-color);
}

.email-options select {
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 8px;
}

.output-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .email-response {
        padding: 1rem;
    }
    
    .email-header {
        font-size: 1.1rem;
    }
    
    .email-content {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Add animation for email response appearance */
.email-response {
    animation: fadeIn 0.3s ease-out;
    opacity: 0;
    transform: translateY(10px);
    animation-fill-mode: forwards;
}

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

/* Style for email input textarea */
#original-email-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.dark-mode .email-response {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

.dark-mode .email-header {
    color: var(--dark-primary-color);
    border-bottom-color: var(--dark-border-color);
}

.dark-mode .email-content {
    background: #334155;
    color: var(--dark-text-color);
}

.dark-mode .email-options {
    background: #1e293b;
}

.dark-mode .email-options label {
    color: var(--dark-text-color);
}

.dark-mode .email-options select {
    background: var(--dark-card-bg);
    color: var(--dark-text-color);
    border-color: var(--dark-border-color);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

/* For dark mode */
.dark-mode .theme-toggle {
    border-color: var(--border-color);
}

.dark-mode .theme-toggle svg {
    color: var(--text-color);
}

/* Navbar buttons container */
.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Resume button style */
.resume-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Success message style */
.success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Resume dialog textarea */
#stored-resume {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

/* Dark mode adjustments */
.dark-mode .resume-button {
    background-color: var(--dark-primary-color);
}

.dark-mode .resume-button:hover {
    background-color: var(--dark-secondary-color);
}

.resume-checkbox-container {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.resume-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.resume-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin: 0;
    padding: 0;
    position: relative;
    top: -1px;
}

.resume-checkbox:checked + .resume-checkbox-label {
    color: var(--primary-color);
}

/* Confirmation Dialog Styles */
.confirm-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.confirm-btn {
    flex: 1;
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.confirm-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.cancel-btn {
    flex: 1;
    background: none;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cancel-btn:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.resume-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

.loading-text {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Aptitude Test Styles */
.aptitude-controls {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 800px;
    position: relative;
}

#aptitude-content .loading-spinner {
    display: none;
    margin: 2rem auto;
}

.test-container {
    display: none;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 800px;
}

.test-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.category-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.question-counter {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timer {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.test-question {
    margin-bottom: 2rem;
}

.option-label {
    display: block;
    margin: 0.75rem 0;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-content input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.option-text {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

/* Question Counter and Category Tag Styles */
.counter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.question-number {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.category-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Dark Mode Adjustments */
.dark-mode .category-card {
    background: var(--dark-card-bg);
}

.dark-mode .category-card h4,
.dark-mode .category-card p {
    color: var(--dark-text-color);
}

.dark-mode .option-text {
    color: var(--dark-text-color);
}

.dark-mode .question-number {
    color: var(--dark-text-color);
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
  
.results-container h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}
  
  .results-container p#score-summary {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
  }
  
  .review-questions {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  .review-question {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .review-question:last-child {
    border-bottom: none;
  }
  
  
  .review-question p {
    margin: 5px 0;
    line-height: 1.6;
  }
  
  .correct-answer {
    color: #2c4c7c;
    font-weight: bold;
  }
  
  .explanation {
    color: #7f8c8d;
    font-style: italic;
  }

  .button2 {
    display: block;
    width: 200px;
    margin: 20px auto;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  .button2:hover {
    background-color: #2c4c7c;
  }

  /* Add these styles to your existing dark mode section */
.dark-mode .results-container {
    background-color: var(--dark-card-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dark-mode .results-container h3 {
    color: var(--dark-text-color);
}

.dark-mode .results-container p#score-summary {
    color: var(--dark-text-color);
}

.dark-mode .review-questions {
    background-color: var(--dark-card-bg);
    border: 1px solid var(--dark-border-color);
}

.dark-mode .review-question {
    border-bottom-color: var(--dark-border-color);
}

.dark-mode .review-question h4 {
    color: var(--dark-primary-color);
}

.dark-mode .question-text {
    color: var(--dark-text-color);
}

.dark-mode .correct-answer {
    color: #7c7fff;
}

.dark-mode .explanation {
    color: #94a3b8;
}

.dark-mode .button2 {
    background-color: var(--dark-primary-color);
    color: var(--dark-text-color);
}

.dark-mode .button2:hover {
    background-color: var(--dark-secondary-color);
}

/* Add these new styles for test settings */
.test-settings {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.setting-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-group select:hover {
    border-color: var(--primary-color);
}

.setting-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Dark mode adjustments */
.dark-mode .test-settings {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

.dark-mode .setting-group label {
    color: var(--dark-text-color);
}

.dark-mode .setting-group select {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

/* Update the setting group styles */
.setting-group input[type="number"] {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
}

.setting-group input[type="number"]:hover {
    border-color: var(--primary-color);
}

.setting-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.input-hint {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Dark mode adjustments */
.dark-mode .setting-group input[type="number"] {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

.dark-mode .input-hint {
    color: var(--dark-text-color);
    opacity: 0.6;
}

/* Remove up/down arrows from number input */
.setting-group input[type="number"]::-webkit-inner-spin-button,
.setting-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.setting-group input[type="number"] {
    -moz-appearance: textfield;
}

/* Add styles for topic tags */
.question-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.topic-tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Add these styles for the review options */
.review-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.review-option {
    position: relative;
    padding: 1rem 2.5rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
}

.review-option.selected:not(.correct) {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.review-option.correct {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.correct-marker,
.incorrect-marker {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.2rem;
}

.correct-marker {
    color: #22c55e;
}

.incorrect-marker {
    color: #ef4444;
}

/* Dark mode adjustments */
.dark-mode .review-option.selected:not(.correct) {
    background: rgba(239, 68, 68, 0.15);
}

.dark-mode .review-option.correct {
    background: rgba(34, 197, 94, 0.15);
}

/* Add legend for the review */
.review-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.correct {
    background: #22c55e;
}

.legend-color.incorrect {
    background: #ef4444;
}

/* Dark mode adjustments */
.dark-mode .review-option {
    border-color: var(--dark-border-color);
}

.dark-mode .review-option.selected {
    background: rgba(239, 68, 68, 0.15);
}

.dark-mode .review-option.correct {
    background: rgba(34, 197, 94, 0.15);
}

.dark-mode .review-legend {
    background: var(--dark-card-bg);
    border: 1px solid var(--dark-border-color);
}

.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
}

.landing-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.landing-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    max-width: 600px;
}

.get-started-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.get-started-button:hover {
    background-color: var(--primary-color-dark);
}

#user-response-input {
    margin: 1rem 0;
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    resize: vertical;
}

.email-input-container textarea {
    margin-bottom: 1rem;
}