/* Modern Theme for TalentVisaAI */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #ff9f43;
    --danger-color: #ee5a52;
    
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #95a5a6;
    
    --bg-primary: rgba(255, 255, 255, 0.95);
    --bg-secondary: rgba(248, 249, 250, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.1);
    
    --border-radius: 15px;
    --border-radius-lg: 20px;
    --border-radius-sm: 10px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Hero Section Colors */
    --hero-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --hero-text: #ffffff;
    --nav-bg: #ffffff;
    --nav-text: #374151;
    --nav-button-bg: #6366f1;
    --nav-button-text: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Override old layout styles */
.page {
    display: none !important;
}

.sidebar {
    display: none !important;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.top-navigation {
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
}

.nav-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--nav-button-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 1.2rem;
}

.brand-text {
    font-weight: 700;
    color: var(--nav-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--nav-button-bg);
}

.nav-auth {
    display: flex;
    align-items: center;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-form {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-button {
    background: var(--nav-button-bg);
    color: var(--nav-button-text);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.nav-button:hover {
    background: #5856eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: var(--nav-button-text);
}

.nav-button.secondary {
    background: transparent;
    color: var(--nav-text);
    border: 2px solid var(--nav-button-bg);
}

.nav-button.secondary:hover {
    background: var(--nav-button-bg);
    color: var(--nav-button-text);
}

.nav-button.logout {
    background: #dc3545;
    color: white;
}

.nav-button.logout:hover {
    background: #c82333;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-container.hero-split {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero-container.hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

.hero-split .hero-content {
    text-align: left;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: var(--hero-text);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    color: var(--hero-text);
    opacity: 0.9;
    line-height: 1.7;
}

.hero-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-action {
    display: flex;
    justify-content: center;
}

.hero-split .hero-action {
    justify-content: flex-start;
}

.hero-button {
    background: white;
    color: var(--nav-button-bg);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    color: var(--nav-button-bg);
}

.hero-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.hero-button:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .nav-auth-buttons {
        gap: 8px;
    }
    
    .nav-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .nav-button.secondary {
        border-width: 1px;
    }
    
    .hero-section {
        padding: 60px 16px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    
    .hero-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Process Section */
.process-section {
    background: #f8fafc;
    padding: 80px 20px;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.process-header {
    margin-bottom: 60px;
}

.process-label {
    color: var(--nav-button-bg);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.process-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--nav-button-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Criteria Section */
.criteria-section {
    background: white;
    padding: 80px 20px;
}

.criteria-container {
    max-width: 1200px;
    margin: 0 auto;
}

.criteria-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
}

.criteria-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.criteria-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.criteria-item:hover {
    border-color: var(--nav-button-bg);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.criteria-item.selected {
    border-color: var(--nav-button-bg);
    background: rgba(99, 102, 241, 0.02);
}

.criteria-icon {
    width: 60px;
    height: 60px;
    background: var(--nav-button-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 1.5rem;
}

.criteria-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.criteria-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--nav-button-bg);
    cursor: pointer;
}

.criteria-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.criteria-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.criteria-action {
    text-align: center;
}

.criteria-button {
    background: var(--nav-button-bg);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.criteria-button:hover {
    background: #5856eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
    color: white;
}

/* Page Layout */
.modern-page {
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 40px 0;
    margin: -20px -15px;
}

.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.modern-header {
    background: var(--primary-gradient);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.modern-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.modern-content {
    padding: 40px;
}

/* Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: none;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.modern-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.modern-card-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Buttons */
.btn-modern-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-modern-primary:hover::before {
    left: 100%;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-modern-secondary {
    background: var(--secondary-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 147, 251, 0.3);
}

.btn-modern-success {
    background: var(--success-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-modern-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Form Elements */
.modern-form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

/* Feature Lists */
.modern-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-feature-list li:last-child {
    border-bottom: none;
}

.modern-feature-list li i {
    color: var(--success-color);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px 15px;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    word-break: break-word;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Progress Bars */
.modern-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.modern-progress-bar {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-page {
        padding: 20px 0;
        margin: -10px;
    }
    
    .modern-content {
        padding: 20px;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert Messages */
.modern-alert {
    border-radius: var(--border-radius-sm);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.modern-alert-success {
    background: rgba(79, 172, 254, 0.1);
    border-left-color: var(--success-color);
    color: #0c5460;
}

.modern-alert-warning {
    background: rgba(255, 159, 67, 0.1);
    border-left-color: var(--warning-color);
    color: #856404;
}

.modern-alert-danger {
    background: rgba(238, 90, 82, 0.1);
    border-left-color: var(--danger-color);
    color: #721c24;
}

/* Loading Spinners */
.modern-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes statsSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tables */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modern-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Badges */
.modern-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-badge-primary {
    background: var(--primary-gradient);
    color: white;
}

.modern-badge-success {
    background: var(--success-gradient);
    color: white;
}

.modern-badge-warning {
    background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
    color: white;
}



.ai-assistant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
}

.assistant-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 25px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: #e9ecef;
    color: #6c757d;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: var(--success-color);
    color: white;
}

.timeline-item.active .timeline-icon {
    background: var(--primary-color);
    color: white;
    animation: pulse-icon 2s infinite;
}

.timeline-content h6 {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.timeline-content small {
    color: var(--text-light);
}

.score-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-number {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
}

.score-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Logout Page Styles */
.logout-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.logout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: backgroundFloat 20s ease-in-out infinite;
}

.logout-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out;
}

.logout-icon, .success-icon, .confirm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: bounceIn 0.8s ease-out;
}

.logout-icon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    color: #d63031;
}

.success-icon {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.confirm-icon {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: #d63031;
}

.logout-progress .confirm-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.logout-title, .success-title, .confirm-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logout-message, .success-message, .confirm-message {
    font-size: 16px;
    color: #636e72;
    margin-bottom: 40px;
    line-height: 1.6;
}

.logout-progress {
    animation: fadeIn 0.5s ease-out;
}

.logout-content .progress-spinner {
    margin: 30px 0;
}

.logout-content .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

.logout-content .action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.logout-content .home-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.logout-content .home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.logout-content .login-btn {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.logout-content .login-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.logout-content .logout-confirm-btn {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.logout-content .logout-confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 48, 49, 0.6);
}

.logout-content .logout-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.logout-content .cancel-btn {
    border: 2px solid #b2bec3;
    color: #636e72;
    background: transparent;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.logout-content .cancel-btn:hover {
    background: #b2bec3;
    color: white;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .logout-content {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .logout-content .action-buttons {
        flex-direction: column;
    }
    
    .logout-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modern Theme Styles for TalentVisaAI */

/* App Title Section in Top Bar */
.app-title-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.app-title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

.app-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    margin: -5px 0 0 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Enhanced top-row styling */
.top-row {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem !important;
    min-height: 70px;
    z-index: 1000;
    position: sticky;
    top: 0;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .app-title {
        font-size: 1.4rem;
    }
    
    .app-title i {
        font-size: 1.2rem;
    }
    
    .app-subtitle {
        font-size: 0.65rem;
    }
    
    .top-row {
        padding: 0.75rem 1rem !important;
        min-height: 60px;
    }
}

/* Responsive Design for new sections */
@media (max-width: 768px) {
    .process-section, .criteria-section {
        padding: 60px 16px;
    }
    
    .process-title, .criteria-title {
        font-size: 2rem;
    }
    
    .process-steps {
        gap: 24px;
        margin-top: 40px;
    }
    
    .process-step {
        padding: 32px 24px;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .criteria-item {
        padding: 24px;
    }
    
    .criteria-subtitle {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .process-title, .criteria-title {
        font-size: 1.75rem;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
    
    .criteria-label {
        font-size: 1.125rem;
    }
    
    .criteria-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Document List Responsive Design */




/* Selected Files Display */
.selected-files-list {
    max-height: 200px;
    overflow-y: auto;
}

.selected-file-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.selected-file-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Wizard Completion Message */
.completion-message {
    margin-top: 15px;
}

.completion-message .alert {
    margin-bottom: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #b8dacc;
    color: #155724;
}

.completion-message .alert i {
    color: #28a745;
}

/* Custom continue button */
.process-continue-btn {
    background: var(--nav-button-bg);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.process-continue-btn:hover {
    background: #5856eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

/* ========================================= */
/* COMPREHENSIVE RESPONSIVE DESIGN UPDATES   */
/* ========================================= */

/* Base responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

/* Mobile First Approach - General Layout */
@media (max-width: 991px) {
    /* Page Layout */
    .modern-page {
        padding: 20px 0;
        margin: 0;
    }
    
    .modern-container {
        border-radius: 0;
        margin: 0;
    }
    
    .modern-header {
        padding: 30px 20px;
    }
    
    .modern-title {
        font-size: 2rem;
    }
    
    .modern-content {
        padding: 20px;
    }
    
    /* Cards */
    .modern-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    /* Forms */
    .modern-form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Buttons */
    .btn-modern-primary,
    .btn-modern-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Tables */
    .modern-table {
        font-size: 0.875rem;
    }
    
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Feature Lists */
    .modern-feature-list {
        padding: 15px;
    }
}

/* Tablet Specific */
@media (min-width: 768px) and (max-width: 991px) {
    .modern-container {
        margin: 0 20px;
        border-radius: var(--border-radius);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        width: auto;
        margin-bottom: 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    /* Stats Grid on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0;
    }
    
    /* Typography */
    .modern-title {
        font-size: 1.75rem;
    }
    
    .modern-subtitle {
        font-size: 1rem;
    }
    
    .modern-card-title {
        font-size: 1.25rem;
    }
    
    /* Padding adjustments */
    .modern-header {
        padding: 25px 15px;
    }
    
    .modern-content {
        padding: 15px;
    }
    
    .modern-card {
        padding: 15px;
    }
    
    /* Form elements */
    .form-label {
        font-size: 0.875rem;
    }
    
    /* Buttons */
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-auth-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-button {
        padding: 6px 12px;
        font-size: 0.875rem;
    }
}

/* Profile Page Responsive */
@media (max-width: 991px) {
    .profile-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .form-label-item {
        height: auto !important;
        margin-bottom: 5px;
    }
    
    .form-label-item .form-label {
        text-align: left !important;
        padding-right: 0 !important;
    }
    
    .danger-zone-card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .danger-action-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .danger-action-info {
        text-align: center;
    }
}

/* Category Page Responsive */
@media (max-width: 768px) {
    .question-card {
        padding: 15px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .document-list {
        padding: 10px;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .document-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Мой прогресс Responsive */
@media (max-width: 768px) {
    .alert-warning .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .alert-warning .fa-2x {
        margin-bottom: 15px;
    }
    
    .alert-warning .btn-warning {
        margin-top: 15px;
    }
}

/* Chat Widget Responsive */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .chat-window {
        width: calc(100vw - 20px);
        max-width: 400px;
        height: 500px;
        right: 10px;
        bottom: 70px;
    }
}

/* Side Navigation Responsive */
@media (max-width: 991px) {
    .side-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1100;
    }
    
    .side-nav.show {
        transform: translateX(0);
    }
    
    /* Add overlay when side nav is open */
    .side-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }
    
    .side-nav-overlay.show {
        display: block;
    }
}

/* Pricing Page Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        max-width: 100%;
    }
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
    
    .contact-info {
        margin-top: 30px;
    }
}

/* Process Steps Responsive */
@media (max-width: 991px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Criteria Grid Responsive */
@media (max-width: 991px) {
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .criteria-item {
        padding: 20px;
    }
    
    .criteria-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Utility Classes for Mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .w-100-mobile {
        width: 100% !important;
    }
    
    .mb-3-mobile {
        margin-bottom: 1rem !important;
    }
}

/* Hero Split Responsive */
@media (max-width: 768px) {
    .hero-container.hero-split {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 800px;
    }
    
    .hero-split .hero-content {
        text-align: center;
    }
    
    .hero-split .hero-action {
        justify-content: center;
    }
    
    .hero-ticker {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .hero-button {
        width: 100%;
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .success-ticker-container {
        padding: 20px;
    }
    
    .ticker-title {
        font-size: 1.1rem;
    }
    
    .success-story {
        padding: 12px;
    }
    
    .percentage-value {
        font-size: 1.5rem;
    }
    
    .story-category {
        font-size: 0.9rem;
    }
    
    .story-time {
        font-size: 0.8rem;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    button, 
    .btn,
    .nav-link,
    .nav-button,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .modern-card:hover,
    .criteria-item:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

/* Print Styles */
@media print {
    .top-navigation,
    .side-nav,
    .chat-widget,
    .nav-auth,
    .btn,
    button {
        display: none !important;
    }
    
    .modern-page {
        background: white;
        padding: 0;
    }
    
    .modern-container {
        box-shadow: none;
        max-width: 100%;
    }
} 