/* Global Styles */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout */
#app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 0;
}

.screen.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    padding: 3rem 0;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.demo-info {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.demo-info p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Interview Screens */
.interview-header {
    margin-bottom: 3rem;
}

.progress-indicator {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.interview-content {
    background: var(--card-background);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.interview-info {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.info-icon {
    width: 20px;
    height: 20px;
}

/* Question Screen */
.question-content {
    background: var(--card-background);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

#question-title {
    margin-bottom: 2rem;
}

.question-option {
    background: var(--background);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-option:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.question-option.selected {
    background-color: #eef2ff;
    border-color: var(--primary-color);
}

.question-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.question-option input[type="radio"],
.question-option input[type="checkbox"] {
    margin-right: 1rem;
}

textarea.text-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

textarea.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Complete Screen */
.complete-content {
    background: var(--card-background);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--success-color);
}

.complete-info {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
}

.complete-info ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* HR Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.candidates-table {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.candidates-table h3 {
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.score {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.score.high {
    background-color: #d1fae5;
    color: #065f46;
}

.score.medium {
    background-color: #fed7aa;
    color: #92400e;
}

/* Report Screen */
.report-header {
    margin-bottom: 3rem;
}

.back-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
}

.back-link:hover {
    text-decoration: underline;
}

.report-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.report-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.report-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
    border-bottom: 1px solid var(--border-color);
}

.responses-container .response-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.response-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.response-item p {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.ai-insights {
    display: grid;
    gap: 1rem;
}

.insight-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.insight-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.recommendations {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #86efac;
}

.recommendations h4 {
    color: #16a34a;
    margin-bottom: 1rem;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.recommendations li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .interview-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}