@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #64748b;
    --accent-color: #f43f5e;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Sidebar Styles */
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #0f172a;
    color: #fff;
    transition: all 0.3s;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 20px 15px;
    background: #1e293b;
    text-align: center;
}

#sidebar .sidebar-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

#sidebar ul.components {
    padding: 10px 0;
}

#sidebar ul li {
    padding: 2px 15px;
}

#sidebar ul li a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active>a {
    color: #fff;
    background: var(--primary-color);
    font-weight: 600;
}

#sidebar ul li i {
    margin-right: 15px;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

/* Submenu Styles */
#sidebar ul li a.dropdown-toggle::after {
    display: inline-block;
    margin-left: auto;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s;
}

#sidebar ul li a.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

#sidebar ul .collapse.show {
    display: block !important;
}

#sidebar ul .collapse li a {
    padding: 8px 12px 8px 50px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

#sidebar ul .collapse li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content Styles */
#content {
    width: calc(100% - 250px);
    padding: 40px;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
}

/* Top Navbar */
.top-navbar {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Public Navbar Styles */
.navbar-public {
    transition: all 0.3s ease;
    padding: 20px 0;
    z-index: 1100;
}

.navbar-public.scrolled {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.navbar-public.scrolled .nav-link {
    color: var(--text-main) !important;
}

.navbar-public.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-public .nav-link {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-public .navbar-brand {
    color: var(--white);
    font-size: 1.75rem;
}

/* UI Elements */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    padding: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Landing Page Styles */
.landing-page {
    background: var(--white);
}

.hero-section {
    height: 100vh;
    min-height: 100vh;
    background-image: url('../img/dental_hero_fullwidth.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 650px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-btns .btn-premium {
    padding: 18px 45px;
    font-size: 1.15rem;
}

.features-section {
    padding: 120px 0;
    background-color: #fcfdfe;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(14, 165, 233, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f0f9ff;
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
}

.cta-section {
    padding: 120px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.btn-premium {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-premium-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-premium-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    color: var(--white);
}

.btn-premium-white {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.btn-premium-white:hover {
    background: #f8fafc;
    transform: scale(1.05);
}

/* Dashboard Stat Cards */
.stat-card {
    border: none;
    border-radius: 15px;
    padding: 25px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-info p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.bg-soft-blue {
    background: #e0f2fe;
    color: #0ea5e9;
}

.bg-soft-green {
    background: #dcfce7;
    color: #22c55e;
}

.bg-soft-purple {
    background: #f3e8ff;
    color: #a855f7;
}

.stat-card-blue {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: var(--white);
}

.stat-card-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.stat-card-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
}

.stat-card-blue .stat-info p,
.stat-card-green .stat-info p,
.stat-card-purple .stat-info p {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card-blue .stat-icon-wrapper,
.stat-card-green .stat-icon-wrapper,
.stat-card-purple .stat-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.card-premium-blue {
    border-top: 4px solid #0ea5e9;
}

.card-premium-green {
    border-top: 4px solid #10b981;
}

.card-premium-purple {
    border-top: 4px solid #8b5cf6;
}

.hover-white:hover {
    color: var(--white) !important;
}

/* Dark Login Styles */
.login-card {
    background: #1e293b;
    border-radius: 20px;
}

.bg-dark-soft {
    background: #0f172a !important;
}

.login-card .input-group-text {
    background: #0f172a;
    border: none;
    color: rgba(255, 255, 255, 0.5);
}

.login-card .form-control:focus {
    background: #0f172a;
    color: var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        width: 100%;
        margin-left: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

/* Social Icons Footer */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}