@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
    --bg-dark: #0F172A;
    --bg-deep-dark: #0D1117;
    --border-color: #30363d;
    --primary-blue: #007BFF;
    --primary-purple: #9333EA;
    --text-light: #E6EDF3;
    --text-medium: #8b949e;
    --footer-bg: #1E1E2E;
    --footer-text: #A5A5A5;
    --bg-medium: #1E293B;
}

body {
    background-color: var(--bg-deep-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-button {
    background-image: linear-gradient(to right, var(--primary-blue), #6b21a8, var(--primary-purple));
    background-size: 200% auto;
    /* ✅ FIX: 'all 0.3s ease-in-out' ensures every property change is smooth */
    transition: all 0.3s ease-in-out;
}
.gradient-button:hover {
    background-position: right center;
    transform: scale(1.05);
}

.nav-link.active-link {
    color: white;
    position: relative;
}
.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-purple);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7s ease-in-out infinite 1s; }
.float-3 { animation: float 8s ease-in-out infinite 0.5s; }

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
    background-size: 2rem 2rem;
    mask-image: radial-gradient(ellipse at center, white 20%, transparent 70%);
    z-index: -1;
}

.card-glow-border {
    position: relative;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}
.card-glow-border:hover {
    border-color: var(--primary-purple);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2c3548; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4a5568; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="url"],
input[type="number"],
textarea,
select {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-dark) inset !important;
    -webkit-text-fill-color: var(--text-light) !important;
    caret-color: var(--text-light) !important;
}

.chart-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* --- Notification Panel Fix --- */
#notification-panel {
    background-color: var(--bg-dark);
}

/* --- Floating Live Support Icon Styles --- */
.live-support-icon {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-blue));
    border-radius: 50%;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

/* Hover Effect */
.live-support-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Keyframes for Shake Animation */
@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    20%, 60% { transform: translate(-6px, 0) rotate(-5deg); }
    40%, 80% { transform: translate(6px, 0) rotate(5deg); }
}

/* Styles for the Floating Message */
.support-message {
    position: fixed;
    bottom: 140px;
    right: 30px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    font-size: 14px;
    transition: opacity 0.3s ease-in-out;
}

/* Keyframes for Pop-up Text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ✅ Date Filter Active/Fix Styles (DASHBOARD FIX) --- */

/* Base active style for standard date filter buttons */
.date-filter-button.active {
    background-color: var(--primary-blue);
    color: white !important;
    border: 1px solid var(--primary-blue);
}

/* Style for date-filter-btn when using Tailwind classes (for visual feedback) */
.date-filter-btn.active-filter,
.date-filter-btn.bg-blue-600.text-white.font-semibold {
    /* Use slate-700 or a custom blue for active state for consistency */
    background-color: #334155; /* Corresponds to Tailwind slate-800 or similar */
    color: white !important;
    font-weight: 600;
    /* Optional shadow for emphasis */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Ensure the background color is correctly applied when active */
.date-filter-btn.bg-slate-700 {
    background-color: #374151 !important;
    color: white !important;
}

/* --- END Date Filter Fix --- */