/* Main Design Tokens */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1d4ed8;
    --accent-blue: #eff6ff;
    --dark-grey: #1a1a1a;
    --light-grey: #f8f9fa;
    --success-green: #28a745;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-input-bg: rgba(0, 0, 0, 0.2);
}

/* Base Styles */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-grey);
    color: #333;
}

/* Glassmorphism Styles */
.glass-page-wrapper {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border) !important;
}

.glass-input {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    box-shadow: none !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.glass-input option {
    background-color: #1a1a1a;
    color: white;
}

.glass-input:focus {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Floating label transitions are now handled in the specialized form-floating section below */

.glass-card .input-group-text {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: none !important;
    color: white !important;
}

/* Fix for Floating Labels & Glass Inputs (Prevents Doubled Text) */
.form-floating>.glass-input {
    height: 3.5rem !important;
    padding-top: 1.625rem !important;
    padding-bottom: 0.625rem !important;
}

.form-floating>.glass-input~label {
    padding: 1rem 0.75rem;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

.form-floating>.glass-input:focus~label,
.form-floating>.glass-input:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    color: white !important;
    opacity: 1;
}

/* Fix for White Rectangle (Autofill & Focus) */
.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover,
.glass-input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.3) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-select.glass-input {
    background-color: rgba(0, 0, 0, 0.25) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    appearance: none !important;
}

.glass-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(0, 0, 0, 0.35) !important;
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Force removal of any default browser outline or background on focus */
.glass-input:focus,
.glass-input:active,
.form-control.glass-input:focus,
.form-select.glass-input:focus {
    outline: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
}

.glass-list .list-group-item {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.glass-list .list-group-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.glass-list .list-group-item.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Enhancements */
.card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 1.25rem;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.text-white .form-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Section Title */
.section-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin-left: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.bg-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

/* Professional Cards (Search & Home) */
.professional-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.professional-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.social-icons-small .btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.social-icons-small .btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}