/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(8deg, #000 0%, #fff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .container {
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 60px;
    }
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Welcome Screen */
#welcome-screen .container {
    text-align: center;
}

.logo-area {
    margin-bottom: 40px;
}

.bank-logo {
    margin-bottom: 15px;
}

.logo-svg {
    width: 80px;
    height: 80px;
}

@media (min-width: 768px) {
    .logo-svg {
        width: 100px;
        height: 100px;
    }
}

.logo-area h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 300;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .welcome-content h2 {
        font-size: 28px;
    }
}

.welcome-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.instruction {
    font-weight: 500;
    color: #0066cc !important;
    font-size: 18px !important;
    margin-bottom: 25px !important;
}

.decision-guide {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    gap: 15px;
}

.guide-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
}

.guide-icon {
    font-size: 18px;
}

.start-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    margin: 20px 0;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.4);
}

.timer-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Resume Screen */
.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 6px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    position: absolute;
    top: -25px;
    right: 0;
}

.resume-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    touch-action: pan-x;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .resume-card {
        padding: 35px;
        margin-bottom: 35px;
    }
}

@media (min-width: 1024px) {
    .resume-card {
        padding: 45px;
        margin-bottom: 45px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.resume-card.swiping-left {
    transform: translateX(-100px) rotate(-10deg);
    opacity: 0.5;
}

.resume-card.swiping-right {
    transform: translateX(100px) rotate(10deg);
    opacity: 0.5;
}

.candidate-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

@media (min-width: 768px) {
    .candidate-header {
        gap: 20px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
}

.candidate-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .candidate-photo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

.candidate-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .candidate-info h3 {
        font-size: 24px;
    }
}

.candidate-position {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.candidate-details {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.resume-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

.experience-item, .education-item {
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #e9ecef;
}

.item-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.item-company, .item-school {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.item-period {
    color: #888;
    font-size: 12px;
}

.item-description {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Decision Buttons */
.decision-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .decision-buttons {
        gap: 25px;
        max-width: 600px;
        margin: 0 auto;
    }
}

.decision-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
}

@media (min-width: 768px) {
    .decision-btn {
        padding: 20px 40px;
        font-size: 18px;
        min-height: 64px;
        max-width: 200px;
    }
}

.reject-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.shortlist-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.decision-btn:hover {
    transform: translateY(-2px);
}

.reject-btn:hover {
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.4);
}

.shortlist-btn:hover {
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.4);
}

.btn-icon {
    font-size: 18px;
}

/* Loading Screen */
.analysis-loader {
    text-align: center;
    color: white;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

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

.analysis-loader h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.loading-steps {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.step {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.step.active {
    color: white;
    font-weight: 500;
}

/* Results Screen */
.results-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.results-header h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.results-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.bias-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.bias-category {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
}

.bias-category.low-bias {
    border-left-color: #28a745;
}

.bias-category.medium-bias {
    border-left-color: #ffc107;
}

.bias-category.high-bias {
    border-left-color: #dc3545;
}

.bias-title {
    font-weight: 600;
    color: #003366;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bias-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.bias-stats {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.reflection-section, .action-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.reflection-section h3, .action-section h3 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 20px;
}

@media (min-width: 768px) {
    .reflection-section h3, .action-section h3 {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

.insight-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-card {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid #0066cc;
}

@media (min-width: 768px) {
    .insight-card {
        padding: 24px;
    }
}

.insight-card h4 {
    color: #003366;
    margin-bottom: 8px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .insight-card h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

.insight-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.restart-button {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .welcome-content {
        padding: 25px 20px;
    }
    
    .decision-guide {
        flex-direction: column;
        gap: 10px;
    }
    
    .resume-card {
        padding: 20px;
    }
    
    .candidate-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .decision-buttons {
        gap: 10px;
    }
    
    .decision-btn {
        font-size: 14px;
        padding: 14px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .container {
        padding: 25px;
    }
    
    .welcome-content {
        padding: 30px 25px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .resume-card {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .decision-buttons {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .welcome-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .welcome-content {
        max-width: 800px;
        margin: 0 auto;
        padding: 50px 60px;
    }
    
    .results-header h1 {
        font-size: 32px;
    }
    
    .results-subtitle {
        font-size: 18px;
    }
    
    .insight-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

/* Touch Interactions */
@media (hover: none) and (pointer: coarse) {
    .decision-btn:hover {
        transform: none;
    }
    
    .start-button:hover, .restart-button:hover {
        transform: none;
    }
}

/* Animations */
.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* Logo styling - optimized for 13" Mac */
.top-logos {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    z-index: 100;
}

.hcl-logo {
    height: 35px;
    /* Much smaller for 13" */
}

.bm-logo-container {
    background: #c41e3a;
    padding: 6px 12px;
    border-radius: 6px;
}

.bm-logo {
    height: 25px;
    /* Much smaller for 13" */
}