/* Common CSS for Genmate Dating App */

/* Base Styles */
body {
    background-color: #FFE8FE !important;
    min-height: 100vh;
    width: 100%;
    font-family: 'Poppins', sans-serif !important;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 49, 159, 0.05) 90%),
        linear-gradient(45deg, rgba(255, 49, 159, 0.03) 0%, rgba(255, 255, 255, 0.1) 100%);
    overflow-x: hidden;
}

/* Logo Font Styling */
.logo-font {
    font-family: 'Spicy Rice', cursive;
    color: #FF319F;
}

/* Card Styling */
.card-container {
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(255, 49, 159, 0.1);
}

.auth-container {
    background-color: white !important;
    border-radius: 54px !important;
    box-shadow: 0 10px 25px rgba(255, 49, 159, 0.1) !important;
    padding: 2.5rem !important;
    margin: 0 auto;
    max-width: 28rem;
}

/* Button Styling */
.btn {
    background-color: #D9D9D9 !important;
    font-family: 'Spicy Rice', cursive !important;
    transition: all 0.3s ease;
    border-radius: 4px !important;
    border: none !important;
    padding: 10px 24px !important;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #C9C9C9 !important;
}

.pink-btn {
    background-color: #FF319F !important;
    color: white !important;
}

.pink-btn:hover {
    background-color: #e62c8f !important;
}

/* Form Input Styling */
.input-field {
    background-color: #EEEEEE !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1.5;
}

.input-field:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 49, 159, 0.3) !important;
}

.input-field::placeholder {
    color: #888888 !important;
}

/* Tab Styling */
.tab-button {
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FF319F;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #FF319F;
}

.tab-button.active:after {
    width: 70%;
}

.tab-active {
    border-bottom: 2px solid #FF319F;
    color: #FF319F;
}

/* Link Styling */
.link-text {
    font-family: 'Spicy Rice', cursive;
    text-decoration: underline;
    color: #FF319F;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-text:hover {
    color: #e62c8f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-container {
        border-radius: 24px;
        padding: 20px;
    }

    .card-container {
        border-radius: 16px;
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

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

/* Additional Login Page Specific Styles */
.blind-icon {
    width: 71px !important;
    height: 87.41px !important;
}

.dna-icon {
    width: 91px !important;
    height: 76.84px !important;
}

.otp-input {
    background-color: #EEEEEE !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    text-align: center !important;
    letter-spacing: 8px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 49, 159, 0.3) !important;
}

.otp-input::placeholder {
    color: #888888 !important;
    letter-spacing: 3px !important;
}

/* Password strength indicators */
.req-item.valid {
    color: #10B981 !important;
    /* text-green-500 */
}

.password-strength.weak #strengthBar {
    background-color: #EF4444 !important;
    /* red-500 */
    width: 25% !important;
}

.password-strength.medium #strengthBar {
    background-color: #F59E0B !important;
    /* yellow-500 */
    width: 50% !important;
}

.password-strength.strong #strengthBar {
    background-color: #10B981 !important;
    /* green-500 */
    width: 75% !important;
}

.password-strength.very-strong #strengthBar {
    background-color: #047857 !important;
    /* green-700 */
    width: 100% !important;
}

/* Ensure proper spacing and layout */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Fix for flex layouts */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.w-full {
    width: 100% !important;
}

.w-1\/2 {
    width: 50% !important;
}

/* Responsive design fixes */
@media (min-width: 768px) {
    .md\:w-1\/2 {
        width: 50% !important;
    }

    .md\:flex-row {
        flex-direction: row !important;
    }

    .md\:text-7xl {
        font-size: 4.5rem !important;
        line-height: 1 !important;
    }

    .md\:text-6xl {
        font-size: 3.75rem !important;
        line-height: 1 !important;
    }
}

/* Text sizing */
.text-5xl {
    font-size: 3rem !important;
    line-height: 1 !important;
}

.text-4xl {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

/* Margin and padding utilities */
.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mt-16 {
    margin-top: 4rem !important;
}

.p-10 {
    padding: 2.5rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-6 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Text alignment */
.text-center {
    text-align: center !important;
}

/* Drop shadow */
.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1)) !important;
}

.drop-shadow-md {
    filter: drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06)) !important;
}

/* Global Select/Dropdown Arrow Spacing Fix */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 2.5rem !important;
    /* Ensure enough space for dropdown arrow */
}

/* Custom select arrow positioning */
.custom-select-trigger::after,
.select-arrow {
    right: 16px !important;
    left: auto !important;
    padding: 0 !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #333 !important;
    border-bottom: 2px solid #333 !important;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    position: absolute;
    top: 50%;
}

/* Remove background properties for native select arrows */
select:not([multiple]):not([size]) {
    background-image: none !important;
}

/* Enhanced Navbar Dropdown Styling */
.navbar-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 232, 254, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 49, 159, 0.1);
    box-shadow: 0 20px 25px -5px rgba(255, 49, 159, 0.1), 0 10px 10px -5px rgba(255, 49, 159, 0.04);
}

.navbar-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid rgba(255, 49, 159, 0.1);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: -1;
}

/* Dropdown menu item hover effects */
.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 49, 159, 0.1), transparent);
    transition: left 0.5s;
}

.dropdown-item:hover::before {
    left: 100%;
}

/* User avatar glow effect */
.user-avatar {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(255, 49, 159, 0.1);
}

.user-avatar:hover {
    box-shadow: 0 0 0 3px rgba(255, 49, 159, 0.2), 0 0 20px rgba(255, 49, 159, 0.1);
    transform: scale(1.05);
}

/* Mobile menu enhancements */
.mobile-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 232, 254, 0.05) 100%);
    backdrop-filter: blur(10px);
}

/* Smooth transitions for all interactive elements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF319F, #e62c8f);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Theme toggle button enhancement */
#themeToggle {
    background: rgba(255, 49, 159, 0.05);
    border: 1px solid rgba(255, 49, 159, 0.1);
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background: rgba(255, 49, 159, 0.1);
    transform: scale(1.05);
}

/* Mobile menu button enhancement */
#mobileMenuButton {
    background: rgba(255, 49, 159, 0.05);
    border: 1px solid rgba(255, 49, 159, 0.1);
    transition: all 0.3s ease;
}

#mobileMenuButton:hover {
    background: rgba(255, 49, 159, 0.1);
    transform: scale(1.05);
}