/* ==========================================================================
   Modern Glassmorphism 2.0 UI - Lead Scraper Pro
   Theme: White & Rose (Fully Responsive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-rose: #FF4D6D;
    --secondary-rose: #FF758F;
    --light-rose: #FFF0F3;
    --bg-color: #F8F9FA;
    --text-main: #2B2D42;
    --text-muted: #8D99AE;
    --white: #FFFFFF;
    
    /* Glassmorphism Values */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(255, 77, 109, 0.05);
    --glass-blur: blur(12px);
    
    /* UI Elements */
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-speed: 0.3s;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    /* Soft mesh gradient background for modern look */
    background-image: 
        radial-gradient(at 0% 0%, hsla(349,100%,88%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(0,0%,100%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(349,100%,88%,0.5) 0, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

a {
    text-decoration: none;
    color: var(--primary-rose);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-rose);
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

.glass-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 1.5rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.1);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-rose), var(--secondary-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #E2E8F0;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: var(--text-main);
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 4px var(--light-rose);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-rose), var(--secondary-rose));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-rose);
    color: var(--primary-rose);
}

.btn-outline:hover {
    background: var(--light-rose);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--white);
    border-left: 4px solid var(--primary-rose);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--secondary-rose); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-rose); }

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in { animation: fadeIn 0.6s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   📱 MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */

/* For Tablets and Large Phones */
@media screen and (max-width: 992px) {
    /* Landing Page Responsive */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
        padding-bottom: 50px;
    }
    
    .hero-content {
        margin-bottom: 60px;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content div[style*="display: flex"] {
        flex-direction: column;
        justify-content: center;
    }

    /* Admin Panel Responsive */
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar-wrapper {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px;
        z-index: 50;
    }
    
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .admin-main-content {
        padding: 15px;
    }
}

/* For Standard Mobile Phones */
@media screen and (max-width: 768px) {
    
    /* Navigation */
    .public-navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .floating-card-1 {
        width: 250px;
        right: 0;
    }
    
    .floating-card-2 {
        width: 200px;
        left: 0;
    }

    /* Universal Grids (Forces all 2/3 column inline grids to 1 column) */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Paddings */
    .glass-panel, .glass-card {
        padding: 1.2rem;
    }
    
    .features-section, .faq-section {
        padding: 60px 5%;
    }

    /* Admin Topbar */
    .admin-topbar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Auth Cards (Login/Register) */
    .auth-card {
        margin: 20px;
        padding: 1.5rem !important;
    }
    
    /* Toast notifications on mobile */
    .toast-container {
        left: 20px;
        right: 20px;
        top: 10px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
        padding: 10px 16px;
    }
}