/**
 * AI Overmatch Platform - Custom Styles
 * Bootstrap 5 with Dark Mode Support
 */

:root {
    --primary: #6366F1;
    --secondary: #8B5CF6;
    --accent: #EC4899;
}

/* Light theme only - dark mode removed */

/* Header Styles */
.navbar {
    background-color: #ffffff !important;
}

.navbar-brand {
    color: #1a1a1a !important;
}

.nav-link {
    color: #1a1a1a !important;
    transition: color 0.2s ease;
    font-size: 1.05rem !important;
    padding: 0.5rem 0.75rem !important;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav {
    gap: 0.75rem !important;
}

.navbar-nav .nav-item {
    margin-right: 0 !important;
}

/* Remove all underlines from nav links */
.nav-link,
.nav-link.active,
.nav-link.active::after,
.nav-link.active::before,
.nav-link::after,
.nav-link::before {
    text-decoration: none !important;
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    box-shadow: none !important;
}

.nav-link::after,
.nav-link::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.nav-link.active::after,
.nav-link.active::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.navbar-toggler {
    border-color: #1a1a1a;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 26, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #4F46E5;
    border-color: #4F46E5;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

/* Modern Homepage Styles */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.btn-dark {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    font-weight: 600;
}

.btn-dark:hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
    border-color: #1a1a1a;
    color: #1a1a1a;
    font-weight: 600;
}

.btn-outline-dark:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* Typography Improvements */
.display-3 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-6 {
    font-size: 1.75rem;
    font-weight: 400;
}

/* Spacing */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Clean Modern Look */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.border-0 {
    border: 0 !important;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

footer h6,
footer .fw-bold,
footer .text-white {
    color: #ffffff !important;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

footer a {
    transition: color 0.3s ease, opacity 0.3s ease;
    color: rgba(255, 255, 255, 0.5) !important;
}

footer a:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Registration Form Styles */
.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.step-item.active .step-number {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
}

.step-item.completed .step-number {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.step-item.completed .step-number::before {
    content: none !important;
    display: none !important;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 1rem;
    margin-top: -30px;
    position: relative;
    z-index: 0;
}

.step-item.active ~ .step-line,
.step-item.completed ~ .step-line {
    background-color: var(--primary);
}

/* Role Selection Cards */
.role-card {
    display: block;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.role-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.role-select:checked + .role-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.role-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.role-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Step Content Animation */
.step-content {
    animation: fadeInSlide 0.4s ease;
}

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

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background-color: #ef4444;
    width: 33%;
}

.strength-medium {
    background-color: #f59e0b;
    width: 66%;
}

.strength-strong {
    background-color: #10b981;
    width: 100%;
}

/* Review Section */
.review-section {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
}

.review-section h6 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.review-section p {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

/* Form Enhancements */
.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-label.fw-semibold {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

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


/* Badge Styles */
.badge {
    padding: 0.5em 0.75em;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Chat Styles */
.chat-container {
    height: 600px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.message.sent {
    background-color: var(--primary);
    color: white;
    margin-left: auto;
    max-width: 70%;
}

.message.received {
    background-color: var(--bs-secondary-bg);
    max-width: 70%;
}

/* Scheduler Styles */
.appointment-card {
    border-left: 4px solid var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .chat-container {
        height: 400px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Registration Form Styles */
.role-card {
    display: block;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.role-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.role-select:checked + .role-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.role-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.role-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.role-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Progress Steps */
#progressSteps {
    position: relative;
    padding: 1rem 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: #10b981;
    color: white;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem;
    margin-top: -21px;
    z-index: -1;
}

.step-item.completed ~ .step-item .step-line {
    background: #10b981;
}

/* Skill Checkboxes */
.skill-checkbox-wrapper {
    position: relative;
}

.skill-label {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.skill-label:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.skill-checkbox:checked + .skill-label {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* File Upload Preview */
.file-preview {
    margin-top: 1rem;
    padding: 1.5rem;
    border: 2px dashed #e9ecef;
    border-radius: 0.75rem;
    text-align: center;
    background: #f8f9fa;
}

.file-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-preview .file-name {
    margin-top: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.strength-weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.strength-medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strength-strong {
    width: 100%;
    background: #10b981;
}

/* Review Section */
.review-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.review-section p {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.review-section p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Searchable Select Dropdown */
.searchable-select-wrapper {
    position: relative;
}

.searchable-select {
    position: relative;
    width: 100%;
}

.select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.select-display:hover {
    border-color: var(--primary);
}

.select-display.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.select-text {
    flex: 1;
    color: #1a1a1a;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.select-text.placeholder {
    color: #6c757d;
}

.select-arrow {
    color: #6c757d;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.select-display.active .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 0.25rem;
    max-height: 400px;
    overflow: hidden;
    flex-direction: column;
}

.select-dropdown.show {
    display: flex;
}

.select-search {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.select-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.select-search input {
    padding-left: 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.select-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a1a;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.country-name {
    flex: 1;
}

.isd-code-value {
    font-weight: 600;
    color: var(--primary);
    margin-left: auto;
    padding-left: 0.5rem;
}

/* Loading spinner for AJAX */
.spin {
    animation: spin 1s linear infinite;
}

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

.country-flag-display {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    line-height: 1;
}

.select-display .select-text {
    display: flex;
    align-items: center;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.select-option.selected {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

.select-option.hidden {
    display: none;
}

/* Scrollbar styling for select options */
.select-options::-webkit-scrollbar {
    width: 8px;
}

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

.select-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
