/* ========================================
   PROFESSIONAL FAUCET THEME - MODERN DESIGN
   ======================================== */

:root {
    --primary-rgb: 13, 110, 253;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   NAVBAR - GLASSMORPHISM EFFECT
   ======================================== */
.navbar {
    backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========================================
   HERO SECTION - STUNNING GRADIENT
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 160px 0 140px;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            #667eea 50%,
            var(--secondary-color) 100%);
    color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BUTTONS - MODERN & INTERACTIVE
   ======================================== */
.btn {
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-light:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

/* ========================================
   CARDS - PREMIUM DESIGN
   ======================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #718096;
    line-height: 1.7;
}

/* Hover effect for earning cards */
.hover-effect {
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.hover-effect:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.hover-effect .fa-2x {
    transition: var(--transition);
}

.hover-effect:hover .fa-2x {
    transform: scale(1.2) rotate(5deg);
}

/* ========================================
   ICONS - GRADIENT COLORS
   ======================================== */
.text-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fa-3x {
    font-size: 3rem;
}

.fa-2x {
    font-size: 2rem;
}

/* ========================================
   ACCORDION - MODERN FAQ
   ======================================== */
.accordion {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-item {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 1px;
}

.accordion-button {
    font-weight: 600;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    transition: var(--transition);
}

.accordion-body {
    padding: 1.5rem;
    color: #4a5568;
    background: #ffffff;
}

/* ========================================
   MODAL - ENHANCED DESIGN
   ======================================== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-body {
    padding: 2rem;
}

/* ========================================
   FORM CONTROLS - MODERN INPUT FIELDS
   ======================================== */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
    background: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

/* ========================================
   FOOTER - CLEAN DESIGN
   ======================================== */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    color: #718096;
    font-size: 0.95rem;
}

/* ========================================
   UTILITIES
   ======================================== */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.text-muted {
    color: #718096 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.spinner-border {
    border-width: 3px;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Button Variants & Text Visibility Fixes */
.btn-primary:hover {
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);
    color: #ffffff !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.5);
    color: #ffffff !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5);
    color: #ffffff !important;
}

.bg-primary,
.bg-primary * {
    color: #ffffff !important;
}

.bg-success,
.bg-success * {
    color: #ffffff !important;
}

.bg-danger,
.bg-danger * {
    color: #ffffff !important;
}

.bg-warning,
.bg-warning * {
    color: #ffffff !important;
}

.bg-info,
.bg-info * {
    color: #ffffff !important;
}

.text-white,
.text-white * {
    color: #ffffff !important;
}

/* ========================================
   LAYOUT - SIDEBAR & CONTENT AREA
   ======================================== */
.main-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    width: 100%;
    position: relative;
}

.sidebar-desktop {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 1020;
    flex-shrink: 0;
}

.content-area {
    margin-left: 250px;
    padding: 20px;
    min-height: calc(100vh - 70px);
    width: calc(100% - 250px);
    box-sizing: border-box;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .sidebar-desktop {
        display: none !important;
    }

    .content-area {
        margin-left: 0 !important;
        width: 100% !important;
    }
}