/* premium-saas.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #4F46E5;
    /* Indigo 600 */
    --secondary-color: #10B981;
    /* Emerald 500 */
    --dark-bg: #0F172A;
    /* Slate 900 */
    --card-bg: #1E293B;
    /* Slate 800 */
    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
}

.hover-white:hover {
    color: white !important;
}

.sidebar-admin .nav-link:focus,
.sidebar-admin .nav-link:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.sidebar-admin .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Navbar */
.navbar-glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Cards */
.card-premium {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #4338ca 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: white;
}

/* Features Icon */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing Table */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-bottom-left-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

/* Form Controls Override */
.form-control,
.form-select {
    background-color: #0f172a;
    border-color: #334155;
    color: white;
}

.form-control:focus,
.form-select:focus {
    background-color: #0f172a;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    color: white;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .card-premium {
        padding: 1.5rem !important;
    }
}


/* Sidebar Layout */
.sidebar,
.sidebar-admin {
    width: 250px;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.sidebar-admin {
    background: #020617;
}

.sidebar {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

/* Desktop: Fixed Sidebar */
@media (min-width: 768px) {

    .sidebar,
    .sidebar-admin {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block !important;
        /* Force show on desktop */
    }

    .main-content {
        margin-left: 250px;
        /* Push content to right */
        width: calc(100% - 250px);
    }
}

/* Mobile: Hidden/Offcanvas style (simplification) */
@media (max-width: 767.98px) {

    .sidebar,
    .sidebar-admin {
        display: none;
        /* Hide by default, or use offcanvas in real app */
    }

    .sidebar.show,
    .sidebar-admin.show {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 2000;
        width: 250px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.nav-link.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color) !important;
    border-right: 3px solid var(--primary-color);
}