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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Container - 16:9 Aspect Ratio */
.container {
    width: 90vw;
    max-width: 1440px;
    height: 85vh;
    max-height: 810px;
    min-height: 600px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Control Panel */
.control-panel {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.control-btn {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn i {
    font-size: 14px;
}

.control-btn span {
    margin-left: 6px;
}

.control-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.control-btn:hover:not(.active) {
    background: #f3f4f6;
}

/* Removed obsolete scene indicator */

/* Removed obsolete progress bar and stage indicators - no longer used */

/* Header */
.app-header {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border-bottom: 2px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 75px;
    position: relative;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    width: auto;
}

.logo i {
    color: #2563eb;
    font-size: 24px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo span {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    display: flex;
    align-items: center;
    line-height: 1;
}

.tagline {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 10px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 16px;
}

/* Tab active states with matching intro slide colors */
.tab-btn.expense-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.4);
}

.tab-btn.leave-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95));
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(59, 130, 246, 0.4);
}

.tab-btn.talent-active {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(101, 50, 14, 0.95));
    color: white;
    border-color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(139, 69, 19, 0.4);
}

/* Default active state fallback */
.tab-btn.active {
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) {
    background: #f3f4f6;
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

/* Split Container */
.split-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Chatbot Panel */
.chatbot-panel {
    width: 40%;
    background: #f0f4f8;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Chat Container */
.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header i {
    color: #2563eb;
    font-size: 20px;
}

.chat-header span {
    font-weight: 600;
    color: #1e293b;
}

.status-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #10b981;
}

.status-indicator i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bot-message, .user-message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease;
}

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

.bot-avatar, .user-avatar {
    width: 36px;
    height: 36px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.user-avatar {
    background: #10b981;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-content p {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.5;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: #eff6ff;
}

/* Upload Notification */
.upload-notification {
    background: #f0f9ff;
    border: 1px solid #3b82f6;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.upload-notification i {
    color: #3b82f6;
    font-size: 20px;
}

.upload-notification span {
    color: #1e40af;
    font-size: 13px;
    font-weight: 500;
}

/* Processing Animation */
.processing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    margin-top: 8px;
}

.processing-indicator i {
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.processing-indicator span {
    color: #92400e;
    font-size: 13px;
}

/* Chat Input Area */
.chat-input-area {
    padding: 12px;
    background: #f8fafc;
    border-top: 2px solid #e5e7eb;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input::placeholder {
    color: #94a3b8;
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.4);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn i {
    font-size: 18px;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    margin-bottom: 12px;
}

.upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-zone.active {
    border-color: #3b82f6;
    background: #dbeafe;
}

.upload-zone i {
    font-size: 32px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.upload-zone p {
    color: #64748b;
    font-size: 14px;
}

/* System Panel */
.system-panel {
    flex: 1;
    background: white;
    overflow-y: auto;
    max-height: calc(100vh - 75px);
    position: relative;
    min-height: 0;
}

.system-interface {
    display: none;
    animation: fadeIn 0.3s ease;
}

.system-interface.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.system-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-header i {
    font-size: 24px;
    color: #2563eb;
}

.system-header h2 {
    font-size: 20px;
    color: #1e293b;
    font-weight: 600;
}

/* Forms */
.system-form {
    padding: 24px;
}

.form-section h3 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group label i {
    font-size: 14px;
    color: #94a3b8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly],
.form-group select[disabled],
.form-group textarea[readonly] {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-group input.filled,
.form-group select.filled,
.form-group textarea.filled {
    background: linear-gradient(45deg, #dcfce7, #bbf7d0);
    color: #1e293b;
    border: 2px solid #10b981;
    animation: fillAnimation 0.8s ease;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    position: relative;
    font-weight: 600;
}

.form-group input.filled::after,
.form-group select.filled::after,
.form-group textarea.filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(16, 185, 129, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes fillAnimation {
    0% {
        background: #f8fafc;
        transform: scale(1);
        box-shadow: none;
        border-color: #e5e7eb;
    }
    25% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.8);
        background: linear-gradient(45deg, #a7f3d0, #34d399);
        border-color: #059669;
    }
    50% {
        transform: scale(1.02);
        background: linear-gradient(45deg, #6ee7b7, #10b981);
    }
    100% {
        background: linear-gradient(45deg, #dcfce7, #bbf7d0);
        transform: scale(1);
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
        border-color: #10b981;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Glowing effect for filling forms */
.form-group.filling {
    animation: glow 1s ease-in-out;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 30px rgba(245, 158, 11, 0.9));
    }
}

/* Success Screen */
.success-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: successFadeIn 0.5s ease;
}

.success-screen.show {
    display: flex;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    animation: successPulse 1s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 60px;
    color: white;
    animation: checkMark 0.8s ease 0.3s both;
}

@keyframes checkMark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 12px;
    animation: slideUp 0.6s ease 0.4s both;
}

.success-message {
    font-size: 16px;
    color: #047857;
    margin-bottom: 8px;
    animation: slideUp 0.6s ease 0.5s both;
}

.submission-id {
    font-size: 18px;
    font-weight: 600;
    color: #10b981;
    background: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #10b981;
    animation: slideUp 0.6s ease 0.6s both;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-status {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.form-status i {
    color: #3b82f6;
    font-size: 16px;
}

.form-status span {
    color: #1e40af;
    font-size: 13px;
}

.form-status.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.form-status.success i {
    color: #10b981;
}

.form-status.success span {
    color: #065f46;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-btn.processing {
    background: #f59e0b;
}

.submit-btn.completed {
    background: #10b981;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Calendar Widget */
.calendar-widget {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    display: none;
}

.calendar-widget.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.calendar-preview {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    max-width: 280px;
}

.calendar-day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b;
    background: white;
}

.calendar-day.selected {
    background: #2563eb;
    color: white;
    font-weight: 600;
}

.calendar-day.weekend {
    color: #94a3b8;
}

/* Talent Dashboard - Optimized Heights */
.talent-dashboard {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.skills-analysis {
    grid-column: span 2;
}

.candidate-info,
.job-matches {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 320px;
}

.skills-analysis {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.candidate-info h3,
.job-matches h3,
.skills-analysis h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Reduced placeholder heights */
.info-placeholder,
.matches-placeholder,
.skills-placeholder {
    text-align: center;
    padding: 20px 10px;
    color: #94a3b8;
}

.info-placeholder i,
.matches-placeholder i,
.skills-placeholder i {
    font-size: 24px;
    margin-bottom: 6px;
    opacity: 0.5;
}

.info-placeholder p,
.matches-placeholder p,
.skills-placeholder p {
    font-size: 12px;
    margin: 0;
}

/* Candidate Profile (when filled) */
.candidate-details {
    display: grid;
    gap: 8px;
    animation: fadeIn 0.5s ease;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item strong {
    font-size: 13px;
    color: #64748b;
    min-width: 100px;
}

.detail-item span {
    font-size: 14px;
    color: #1e293b;
}

/* Job Match Cards */
.job-matches-content {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.job-match-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease;
}

.job-match-card:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.job-info h4 {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.job-info p {
    font-size: 12px;
    color: #64748b;
}

.match-score {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.match-score.high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.match-score.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.match-score.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Skills Chart */
.skills-chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-name {
    font-size: 12px;
    color: #475569;
    min-width: 60px;
}

.skill-bar {
    flex: 1;
    height: 16px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.skill-fill span {
    font-size: 11px;
    color: white;
    font-weight: 600;
}

/* ROI Dashboard */
.metrics-container {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.metric-card i {
    font-size: 32px;
    color: #2563eb;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.implementation-stats {
    padding: 0 24px 24px;
}

.implementation-stats h3 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
}

/* Typing Animation */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Upload Preview Cards - Reduced Size */
.upload-preview {
    margin-top: 8px;
    margin-bottom: 8px;
    animation: slideUp 0.5s ease;
    transition: all 0.5s ease;
}

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

/* Preview expand/minimize animations */
.upload-preview.preview-expanded {
    animation: expandPreview 0.5s ease forwards;
}

.upload-preview.preview-minimizing {
    animation: minimizePreview 0.5s ease forwards;
}

@keyframes expandPreview {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes minimizePreview {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
}

/* Compact Preview Cards */
.upload-preview.compact {
    margin-top: 12px;
    margin-bottom: 12px;
}

.preview-card-compact {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.preview-card-compact:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.preview-icon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 6px;
    flex-shrink: 0;
}

.preview-icon-section .file-type-icon {
    font-size: 20px;
}

.preview-info-section {
    flex: 1;
    min-width: 0;
}

.preview-filename {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-details {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    flex-wrap: wrap;
}

.preview-highlight {
    color: #1e293b;
    font-weight: 600;
}

.preview-separator {
    color: #cbd5e1;
    font-size: 10px;
}

.preview-amount,
.preview-date,
.preview-flight,
.preview-dates,
.preview-role,
.preview-exp {
    color: #475569;
}

.preview-status {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
    animation: statusPulse 0.5s ease;
}

@keyframes statusPulse {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Old full-size preview cards (deprecated) */
.preview-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
}

.preview-header .file-type-icon {
    font-size: 14px;
}

.preview-content {
    padding: 10px 12px;
}

/* Receipt Mock - Reduced Size */
.receipt-mock {
    font-family: 'Courier New', monospace;
    background: #fffef0;
    padding: 10px 12px;
    border: 1px dashed #d4d4d4;
    font-size: 10px;
    color: #333;
}

.receipt-title {
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 6px;
}

.receipt-divider {
    text-align: center;
    color: #999;
    margin: 4px 0;
    font-size: 8px;
    line-height: 4px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
    font-size: 9px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 11px;
    margin-top: 4px;
}

.receipt-subtotal, .receipt-tax {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    margin: 2px 0;
}

.receipt-date, .receipt-time, .receipt-payment {
    text-align: center;
    color: #666;
    margin-top: 3px;
    font-size: 9px;
}

/* Ticket Mock - Reduced Size */
.ticket-mock {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
}

.ticket-airline {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.ticket-airline i {
    font-size: 10px;
}

.ticket-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.ticket-route .airport {
    font-size: 16px;
    font-weight: bold;
}

.ticket-route i {
    font-size: 10px;
}

.ticket-details {
    display: flex;
    justify-content: space-around;
    margin: 8px 0;
}

.ticket-info {
    text-align: center;
}

.ticket-info .label,
.ticket-date .label {
    font-size: 8px;
    opacity: 0.8;
    text-transform: uppercase;
}

.ticket-info .value,
.ticket-date .value {
    font-size: 11px;
    font-weight: bold;
    margin-top: 1px;
}

.ticket-dates {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.ticket-date {
    text-align: center;
}

/* Resume Mock - Reduced Size */
.resume-mock {
    background: #f8fafc;
    padding: 10px 12px;
    border-left: 3px solid #2563eb;
}

.resume-name {
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 3px;
}

.resume-title {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
}

.resume-section {
    margin: 8px 0;
}

.resume-section strong {
    color: #2563eb;
    font-size: 9px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.resume-section p {
    margin: 2px 0;
    font-size: 10px;
    color: #475569;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.resume-skills span {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

/* Fullscreen Mode */
body.fullscreen {
    background: #1e293b;
}

body.fullscreen .control-panel {
    opacity: 0;
    pointer-events: none;
}

body.fullscreen .container {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
}

/* Hide button text in fullscreen on desktop - icon only */
@media (min-width: 769px) {
    body.presentation-mode .control-btn span {
        display: none !important;
    }
    
    body.presentation-mode .control-btn {
        padding: 10px;
        min-width: auto;
    }
    
    body.presentation-mode .control-btn i {
        margin: 0 !important;
    }
}

/* Responsive Design */
@media (max-width: 1280px) {
    .container {
        width: 95vw;
        height: 90vh;
    }
    
    .chatbot-panel {
        width: 45%;
    }
    
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-header {
        padding: 12px 16px;
        height: 65px;
    }
    
    .logo {
        height: 30px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .logo-section {
        min-width: 150px;
    }
    
    .tagline {
        display: none;
    }
    
    .control-panel {
        gap: 4px;
    }
    
    /* Removed obsolete progress bar media query */
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .split-container {
        flex-direction: column;
        overflow-y: auto;
        scroll-behavior: smooth;
    }
    
    .chatbot-panel {
        width: 100%;
        min-height: 50vh;
        padding: 15px;
        flex-shrink: 0;
        order: 1;
    }
    
    .system-panel {
        width: 100%;
        min-height: 50vh;
        flex-shrink: 0;
        order: 2;
        max-height: none;
    }
    
    .app-header {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 10px;
        gap: 8px;
        flex-shrink: 0;
        justify-content: center;
    }
    
    .logo-section {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        width: 100%;
    }
    
    .logo i, .logo span {
        align-self: center;
    }
    
    .tab-navigation {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }
    
    .tab-btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 50px;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        font-size: 20px;
        margin: 0;
    }
    
    .control-panel {
        order: 2;
        margin-left: 0;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        gap: 4px;
    }
    
    /* Mobile: icon-only buttons at bottom right */
    .control-panel {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .control-btn {
        padding: 12px;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .control-btn i {
        font-size: 20px;
        margin: 0 !important;
    }
    
    /* Hide button text on mobile - IMPORTANT */
    .control-btn span {
        display: none !important;
    }
    
    /* Don't hide controls in fullscreen on mobile */
    body.presentation-mode .control-panel {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Mobile-specific scrolling animations */
    .scroll-to-chat {
        animation: scrollHighlight 1s ease;
    }
    
    .scroll-to-system {
        animation: scrollHighlight 1s ease;
    }
    
    @keyframes scrollHighlight {
        0%, 100% {
            background: transparent;
        }
        50% {
            background: rgba(37, 99, 235, 0.1);
        }
    }
    
    /* Compact previews on mobile */
    .upload-preview.compact {
        margin: 8px 0;
    }
    
    .preview-card-compact {
        padding: 10px;
    }
    
    .preview-icon-section {
        width: 32px;
        height: 32px;
    }
    
    .preview-icon-section .file-type-icon {
        font-size: 16px;
    }
    
    .preview-filename {
        font-size: 11px;
    }
    
    .preview-details {
        font-size: 12px;
    }
    
    .preview-status {
        font-size: 16px;
    }
    
    /* Optimize mobile form layouts */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .talent-dashboard {
        grid-template-columns: 1fr;
        padding: 15px;
        height: auto;
        gap: 12px;
    }
    
    .candidate-info,
    .job-matches,
    .skills-analysis {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .candidate-info h3,
    .job-matches h3,
    .skills-analysis h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .job-match-card {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .job-info h4 {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .job-info p {
        font-size: 11px;
    }
    
    .match-score {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .detail-item {
        padding: 6px 0;
    }
    
    .detail-item strong {
        font-size: 11px;
        min-width: 70px;
    }
    
    .detail-item span {
        font-size: 12px;
    }
    
    .skill-name {
        min-width: 50px;
        font-size: 11px;
    }
    
    .skill-bar {
        height: 14px;
    }
    
    .skill-fill span {
        font-size: 10px;
    }
    
    .skills-analysis {
        grid-column: span 1;
    }
    
    .skills-chart {
        grid-template-columns: 1fr;
    }
    
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 24px;
    }
    
    .upload-preview {
        margin-top: 10px;
    }
    
    .preview-content {
        padding: 12px;
    }
}

/* CTA Button */
.cta-section {
    text-align: center;
    margin-top: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Animated Cursor */
.animated-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10000;
    display: none;
}

.animated-cursor.show {
    display: block;
}

.animated-cursor::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #2563eb;
    transform: rotate(-45deg);
}

.animated-cursor.clicking {
    animation: cursorClick 0.5s ease;
}

@keyframes cursorClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.8); }
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background-color: #2563eb;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Opening Overlay - Elegant Welcome Slide */
.opening-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    border-radius: 12px;
}

.opening-overlay.show {
    opacity: 1;
    visibility: visible;
}

.opening-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 1200px;
    width: 90%;
    animation: openingSlideIn 0.8s ease;
}

@keyframes openingSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.opening-header {
    margin-bottom: 60px;
}

.opening-logo {
    font-size: 80px;
    margin-bottom: 20px;
    color: #2563eb;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.opening-logo-img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.5));
    }
}

.opening-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.opening-subtitle {
    font-size: 24px;
    color: #475569;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.opening-tagline {
    font-size: 18px;
    color: #64748b;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.opening-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.opening-tab {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: tabSlideUp 0.8s ease both;
    position: relative;
    overflow: hidden;
}

.opening-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent, rgba(255, 255, 255, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.opening-tab:active {
    transform: scale(0.98);
}

.opening-tab:active::before {
    opacity: 1;
}

.opening-tab:nth-child(1) {
    animation-delay: 0.2s;
}

.opening-tab:nth-child(2) {
    animation-delay: 0.4s;
}

.opening-tab:nth-child(3) {
    animation-delay: 0.6s;
}

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

.opening-tab:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.expense-tab:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

.leave-tab:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(29, 78, 216, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
}

.talent-tab:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(101, 50, 14, 0.2) 100%);
    border-color: rgba(139, 69, 19, 0.5);
}

.opening-tab i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.expense-tab i {
    color: #10b981;
}

.leave-tab i {
    color: #3b82f6;
}

.talent-tab i {
    color: #8b4513;
}

.opening-tab h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

.opening-tab p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive for opening slide */
@media (max-width: 768px) {
    .opening-content {
        padding: 15px 10px;
        width: 95%;
    }
    
    .opening-header {
        margin-bottom: 20px;
    }
    
    .opening-logo {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .opening-logo-img {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .opening-title {
        font-size: 24px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }
    
    .opening-subtitle {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .opening-tagline {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .opening-tabs {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }
    
    .opening-tab {
        padding: 15px 12px;
        border-radius: 12px;
    }
    
    .opening-tab i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .opening-tab h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .opening-tab p {
        display: none; /* Hide subtitles on mobile to save space */
    }
}

/* Extra small screens - even more compact */
@media (max-width: 480px) {
    .opening-content {
        padding: 10px 8px;
    }
    
    .opening-header {
        margin-bottom: 15px;
    }
    
    .opening-logo {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .opening-logo-img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .opening-title {
        font-size: 20px;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    
    .opening-subtitle {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .opening-tagline {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .opening-tabs {
        gap: 8px;
        margin-top: 15px;
    }
    
    .opening-tab {
        padding: 12px 10px;
        border-radius: 10px;
    }
    
    .opening-tab i {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .opening-tab h3 {
        font-size: 14px;
        margin-bottom: 0;
    }
}

/* Intro Overlay */
.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.intro-overlay.show {
    opacity: 1;
    visibility: visible;
}

.intro-content {
    text-align: center;
    color: white;
    animation: slideInUp 0.8s ease;
}

.intro-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: iconPulse 2s ease-in-out infinite;
}

.intro-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.intro-subtitle {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 20px;
    text-transform: none;
    opacity: 0.95;
    /* No animation - display immediately with title */
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

/* Different color themes for each use case */
.intro-overlay.expense {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
}

.intro-overlay.leave {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95));
}

.intro-overlay.talent {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(101, 50, 14, 0.95));
}

/* Conclusion Overlay - Full Screen */
.conclusion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s ease;
    border-radius: 12px;
}

.conclusion-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.conclusion-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 1200px;
    width: 90%;
    animation: conclusionSlideIn 0.8s ease;
}

@keyframes conclusionSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.conclusion-header {
    margin-bottom: 50px;
}

.conclusion-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.conclusion-title i {
    font-size: 48px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.conclusion-subtitle {
    font-size: 20px;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Conclusion Metrics */
.conclusion-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.conclusion-metric {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.conclusion-metric:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.metric-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.metric-icon-wrap i {
    font-size: 28px;
    color: white;
}

.conclusion-metric-label {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 6px;
}

.conclusion-metric-desc {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Conclusion CTA */
.conclusion-cta {
    margin-top: 60px;
}

.conclusion-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}

.conclusion-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

.conclusion-btn i {
    transition: transform 0.3s ease;
}

.conclusion-btn:hover i {
    transform: translateX(5px);
}

.conclusion-tagline {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
    font-style: italic;
}

/* Responsive for intro slides */
@media (max-width: 768px) {
    .intro-icon {
        font-size: 80px;
        margin-bottom: 20px;
    }
    
    .intro-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .intro-subtitle {
        font-size: 16px;
        margin-top: 15px;
    }
}

/* Responsive for conclusion - Optimized for mobile */
@media (max-width: 768px) {
    .conclusion-content {
        padding: 20px 15px;
    }
    
    .conclusion-header {
        margin-bottom: 25px;
    }
    
    .conclusion-title {
        font-size: 28px;
        gap: 10px;
    }
    
    .conclusion-title i {
        font-size: 24px;
    }
    
    .conclusion-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Redesign metrics for mobile - 2x2 grid */
    .conclusion-metrics {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .conclusion-metric {
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .metric-icon-wrap {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .metric-icon-wrap i {
        font-size: 20px;
    }
    
    .conclusion-metric-label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .conclusion-metric-desc {
        font-size: 11px;
    }
    
    .conclusion-cta {
        margin-top: 25px;
    }
    
    .conclusion-btn {
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 30px;
    }
    
    .conclusion-tagline {
        font-size: 12px;
        margin-top: 15px;
    }
}

@media (min-width: 1920px) {
    .container {
        width: 1440px;
        height: 810px;
    }
}
