/* AI Resume Coach - Main Stylesheet */

:root {
    --primary: #0d6efd;
    --primary-light: #e8f4ff;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --purple: #6f42c1;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background-color: #f5f7fb;
    line-height: 1.6;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #f5f7fb 0%, #e4edf5 100%);
    min-height: 100vh;
}

.auth-card {
    border-radius: 15px;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-card {
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient) !important;
}

/* Feature Cards */
.feature-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

/* Step Cards */
.step-card {
    position: relative;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin: 20px auto 0;
}

/* Pricing Cards */
.pricing-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Dashboard Styles */
.avatar-lg {
    width: 100px;
    height: 100px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Resume Builder Styles */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 5px solid var(--primary);
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
}

.score-label {
    font-size: 18px;
    color: var(--secondary);
}

.score-grade {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.grade-a { color: var(--success); }
.grade-b { color: #28a745; }
.grade-c { color: var(--warning); }
.grade-d { color: var(--danger); }

/* Template Cards */
.template-card {
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.template-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.template-preview {
    width: 100%;
    height: 200px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
}

.template-header {
    height: 40px;
    background: var(--primary);
}

.template-header.classic {
    background: var(--secondary);
}

.template-header.creative {
    background: var(--purple);
}

.template-header.executive {
    background: var(--dark);
}

.template-content {
    padding: 15px;
}

.template-content .line {
    height: 8px;
    background: #e9ecef;
    margin-bottom: 10px;
    border-radius: 4px;
}

.template-content .line.short {
    width: 70%;
}

.template-name {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Benefits List */
.benefits-list .benefit-item {
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.benefits-list .benefit-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

.notification.info {
    background: var(--primary);
}

.notification.warning {
    background: var(--warning);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Badge Styles */
.badge.bg-purple {
    background-color: var(--purple) !important;
}

/* Progress Bars */
.progress-bar {
    background: var(--primary);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

/* Table Styles */
.table {
    --bs-table-bg: transparent;
}

.table-hover tbody tr:hover {
    background-color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Loading Spinner */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Utility Classes */
.text-purple {
    color: var(--purple) !important;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.bg-purple-light {
    background-color: rgba(111, 66, 193, 0.1) !important;
}

.border-purple {
    border-color: var(--purple) !important;
}

/* Custom Shadows */
.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Checkbox */
.custom-checkbox .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Custom Radio */
.custom-radio .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Tooltip Customization */
.tooltip {
    --bs-tooltip-bg: var(--primary);
    --bs-tooltip-color: white;
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    background: var(--primary-light);
}

/* Alert Customization */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

/* Interview Prep Specific Styles */
.interview-type-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.interview-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.interview-type-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.interview-type-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.timer-display {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    padding: 20px;
    background: var(--primary-light);
    border-radius: 15px;
    display: inline-block;
}

/* Career Path Specific Styles */
.career-path-timeline {
    position: relative;
    padding: 20px 0;
}

.career-path-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.path-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.path-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-right: 20px;
    position: relative;
    z-index: 1;
}

.path-step.current .step-marker {
    background: var(--primary);
    color: white;
}

.path-step.next .step-marker {
    border-color: var(--success);
    color: var(--success);
}

.path-step.future .step-marker {
    border-color: var(--secondary);
    color: var(--secondary);
}

.step-content {
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Skill Cards */
.skill-card {
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Industry Cards */
.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Action Plan Table */
.action-plan-table tr {
    transition: all 0.3s ease;
}

.action-plan-table tr:hover {
    background: var(--primary-light);
}

/* Responsive Adjustments for New Pages */
@media (max-width: 768px) {
    .career-path-timeline::before {
        left: 30px;
    }
    
    .step-marker {
        width: 60px;
        height: 60px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .timer-display {
        font-size: 24px;
        padding: 15px;
    }
    
    .interview-type-icon {
        width: 60px;
        height: 60px;
    }
}

/* Print Styles for Interview/Career Pages */
@media print {
    .interview-type-card,
    .career-path-timeline,
    .skill-card,
    .industry-card {
        break-inside: avoid;
    }
    
    .timer-display {
        background: none;
        border: 1px solid #dee2e6;
    }
}