/* Project: Smile Speciality Dental Center
    UI Concept: Glass-Blade Modular (100vh locked)
    Brand Palette: #853493 (Purple), #049ca7 (Teal), #025188 (Blue)
*/

:root {
    --primary-blue: #025188;   /* Text and Primary Headers */
    --accent-teal: #049ca7;    /* Waves, CTA, and Icons */
    --brand-purple: #853493;   /* Specialized Logo Elements */
    --bg-light: #F5F7FA;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --twilight-bg: #1a1a2e;    /* Dark theme for alerts */
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-blue);
    height: 100vh; /* Locked Height per architecture rules */
    overflow: hidden; 
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--white);
    border-bottom: 3px solid var(--accent-teal);
    z-index: 1000;
}

.top-bar {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    height: 70px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-teal);
}

/* --- THE GLASS-BLADE CONTAINER --- */
.glass-blade {
    height: calc(100vh - 120px); /* Adjusting for header/footer */
    overflow-y: auto;
    padding: 2rem 5%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-teal) transparent;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(45deg, rgba(2, 81, 136, 0.85), rgba(133, 52, 147, 0.7)), url('1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px 40px;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Bouncing Icons Animation */
.bouncing-icons i {
    position: absolute;
    color: var(--accent-teal);
    opacity: 0.6;
}

.bounce-1 { top: 10%; left: 5%; animation: bounce 4s infinite ease-in-out; font-size: 3rem; }
.bounce-2 { bottom: 10%; right: 5%; animation: bounce 5s infinite ease-in-out; font-size: 2.5rem; }

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary:hover {
    background: var(--brand-purple);
    transform: scale(1.05);
}

/* --- GRID & CARDS --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border-top: 5px solid var(--brand-purple);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.card i {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

.card h3 { color: var(--primary-blue); margin-bottom: 10px; }

/* --- MOBILE BOTTOM NAV (FLUTTER STYLE) --- */
.mobile-bottom-nav {
    display: none; /* Hidden on Desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
}

.nav-item {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    flex: 1;
}

.nav-item i { font-size: 1.4rem; margin-bottom: 2px; }

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item:active {
    transform: scale(0.9);
    transition: 0.1s;
}

/* --- ALERTS (TWILIGHT THEME) --- */
.twilight-alert {
    background: var(--twilight-bg);
    color: #00e5ff; /* Cyan highlight */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--accent-teal);
    text-align: center;
    margin: 20px 0;
}

/* --- DASHBOARD BUTTON --- */
.back-dashboard {
    background: var(--brand-purple);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
    .nav-links, .top-bar { display: none !important; }
    .mobile-bottom-nav { display: flex; }
    .glass-blade {
        height: calc(100vh - 135px); /* Space for bottom nav */
        padding-bottom: 80px;
    }
    .hero h1 { font-size: 1.8rem; }
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--accent-teal); border-radius: 10px; }
