/* ============================================================
   HoraYoga — App Stylesheet
   Colour scheme extracted from original index / yoga pages
   ============================================================ */

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

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    /* Primary brand gradient (hero / header) */
    --gradient-hero: linear-gradient(to bottom right, #4f46e5, #9333ea, #ec4899);
    /* Header/card gradient */
    --gradient-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Footer gradient */
    --gradient-footer: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);

    /* Primary colour (indigo) */
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-light: #c7d2fe;

    /* Yoga quality colours — exact from original */
    --color-excellent: #4caf50;
    /* Amrutha — deep green */
    --color-excellent-bg: #6aa84f;
    --color-good: #b6d7a8;
    /* Siddha — light green */
    --color-bad: #ea9999;
    /* Prabala — soft red */
    --color-very-bad: #e06666;
    /* Mruthyu — dark red */

    /* Favorable status */
    --color-favorable: #d4edda;
    --color-partial: #fff3e0;
    --color-unfavorable: #fff5f5;

    --color-sunday: #e91e63;

    /* Surface */
    --bg-body: #ffffff;
    --bg-section: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --text: #1f2937;
    --text-muted: #4b5563;
    --text-light: #6b7280;

    --radius: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    --transition: 0.2s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
}

img {
    max-width: 100%;
}

/* ── Utility ──────────────────────────────────────────────── */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ───────────────────────────────────────────────── */
/* Hero section contains its own nav — see below.
   Laravel layout navbar sits outside hero. */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #9333ea 100%);
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* override Bootstrap's space-between */
    gap: 1rem;
    box-shadow: 0 2px 16px rgba(79, 70, 229, .35);
    flex-wrap: nowrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .02em;
}

.logo-icon {
    font-size: 1.4rem;
}

.logo-text .accent {
    color: var(--color-primary-light);
}

/* Hamburger button — hidden on desktop, visible on mobile next to brand */
.navbar-toggler {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 10px;
    padding: .45rem .75rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Nav links — sits right after brand */
.navbar-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.navbar-links a {
    padding: .45rem .9rem;
    border-radius: 9999px;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Right section — always visible, pinned to far right */
.navbar-end {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
}

/* ── Responsive navbar ─────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        /* anchor for the absolute dropdown */
        flex-wrap: nowrap;
        /* keep brand + toggler + end on one row */
        padding: .75rem 1rem;
        gap: .6rem;
    }

    .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 1;
        /* right after brand */
    }

    /* Push .navbar-end to the far right */
    .navbar-end {
        order: 2;
    }

    /* Nav links: hidden by default, absolute so they overlay content */
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem .75rem .75rem;
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #9333ea 100%);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links a {
        padding: .75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .navbar-links a:hover,
    .navbar-links a.active {
        background: rgba(255, 255, 255, 0.18);
        padding-left: 1.25rem;
    }
}


/* Buttons in navbar */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.btn-nav-login:hover {
    background: #ffffff;
    color: var(--color-primary-dark);
}

.btn-nav-register {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    background: #ffffff;
    color: var(--color-primary-dark);
    font-size: .9rem;
    font-weight: 600;
    border: none;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-nav-register:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* User dropdown in navbar */
.nav-dropdown {
    position: relative;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.22);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    color: #374151;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: .5rem;
    min-width: 200px;
    flex-direction: column;
    z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    color: #374151;
    font-size: .9rem;
    transition: background var(--transition);
}

.dropdown-menu a i {
    color: var(--color-primary);
    width: 1rem;
    text-align: center;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: var(--text);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: .35rem 0;
}

.dropdown-logout {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .65rem 1rem;
    background: none;
    border: none;
    color: #dc2626;
    font-size: .9rem;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: background var(--transition);
}

.dropdown-logout:hover {
    background: #fef2f2;
}


/* ── Main & Footer ────────────────────────────────────────── */
.main-content {
    flex: 1;
}

.app-footer {
    background: var(--gradient-footer);
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.25rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1152px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: .5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links a i {
    font-size: .8rem;
    width: .9rem;
}

.footer-social {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .85rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: .85rem;
}

/* Simple centered footer variant */
.footer-inner>p {
    color: rgba(255, 255, 255, 0.65);
    font-size: .85rem;
    margin-bottom: .75rem;
    text-align: center;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links-row a {
    color: rgba(255, 255, 255, 0.7);
    font-size: .85rem;
    transition: color var(--transition);
}

.footer-links-row a:hover {
    color: #fff;
}

/* ── Hero (Home Page) ─────────────────────────────────────── */
.hero-section,
.hero {
    position: relative;
    background: var(--gradient-hero);
    color: #ffffff;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1152px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 9999px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--color-primary-light);
    font-size: 1rem;
    margin-bottom: .25rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-primary-light);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-features {
    margin-top: 1.25rem;
    font-size: .875rem;
    color: var(--color-primary-light);
}

/* Decorative blobs */
.blur-decoration {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(96px);
    pointer-events: none;
}

.blur-left {
    bottom: -8rem;
    left: -8rem;
    background: rgba(236, 72, 153, 0.3);
}

.blur-right {
    top: -8rem;
    right: -8rem;
    background: rgba(99, 102, 241, 0.3);
}

/* Hero grid layout (for pages with side video panels) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 3fr 1fr;
    }
}

/* Astro wheel (pure CSS, no video) */
.hero-visual {
    display: flex;
    justify-content: center;
}

.astro-wheel {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    animation: spinRing linear infinite;
}

.wheel-1 {
    width: 100%;
    height: 100%;
    animation-duration: 60s;
    border-color: rgba(255, 255, 255, 0.35);
}

.wheel-2 {
    width: 70%;
    height: 70%;
    animation-duration: 40s;
    animation-direction: reverse;
}

.wheel-3 {
    width: 42%;
    height: 42%;
    animation-duration: 22s;
    border-color: rgba(199, 210, 254, 0.6);
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wheel-center {
    font-size: 2.5rem;
    z-index: 1;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
}

/* ── Features section ─────────────────────────────────────── */


.section-why,
.features {
    max-width: 1152px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title,
.features h2 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.section-description {
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-muted);
}

.features-grid,
.helps-grid,
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card,
.help-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all var(--transition);
}

.feature-card:hover,
.help-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: .9rem;
}

.feature-card h3,
.help-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.feature-card p,
.help-text {
    font-size: .9rem;
    color: var(--text-muted);
}

.section-helps {
    background: var(--bg-section);
}

.section-helps .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* How it works */
.how-step {
    text-align: center;
}

.step-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-title {
    font-weight: 600;
    margin-bottom: .4rem;
}

.step-text {
    font-size: .875rem;
    color: var(--text-muted);
}

/* CTA Section */
.section-cta {
    background: var(--color-primary);
    color: #fff;
}

.cta-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-description {
    max-width: 36rem;
    margin: 0 auto 2rem;
    color: var(--color-primary-light);
}

.cta-disclaimer {
    font-size: .75rem;
    margin-top: 1rem;
    color: var(--color-primary-light);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta {
    background-color: #ffffff;
    color: #4338ca;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.btn-cta:hover {
    background: #f3f4f6;
    color: var(--color-primary-dark);
}


.btn-cta-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* ── Card header gradient ─────────────────────────────────── */
.card-header-custom {
    background: var(--gradient-header);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-header-custom h3 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-page {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.dashboard-hero {
    margin-bottom: 2rem;
}

.dashboard-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
}

.dashboard-hero p {
    color: var(--text-muted);
    margin-top: .4rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-card h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem .75rem;
    color: var(--text);
    font-size: .85rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition);
}

.action-tile:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.action-icon {
    font-size: 1.6rem;
}

.location-name {
    font-size: 1rem;
    color: var(--text);
}

.location-empty {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.activity-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    background: var(--bg-section);
    border-radius: 6px;
    font-size: .85rem;
}

.activity-url {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.activity-time {
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: .5rem;
    font-size: .8rem;
}

.empty-state {
    color: var(--text-muted);
    font-size: .9rem;
}

/* ── Profile Page ─────────────────────────────────────────── */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.profile-page h1 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── Auth Forms ───────────────────────────────────────────── */
.auth-page {
    min-height: 80vh;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: .5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: .9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .4rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .7rem 1rem;
    color: var(--text);
    font-size: .95rem;
    background: var(--bg-body);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-submit {
    width: 100%;
    margin-top: .5rem;
    justify-content: center;
}

.oauth-divider {
    text-align: center;
    color: var(--text-light);
    font-size: .8rem;
    margin: 1.5rem 0;
    position: relative;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}

.oauth-divider::before {
    left: 0;
}

.oauth-divider::after {
    right: 0;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-oauth:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 500;
}

/* ── Generic Page ─────────────────────────────────────────── */
.page-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-section h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-section p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ── Yoga status colours (used across calendar, range, matcher) ── */
/* Nakshatra quality badges */
.yoga-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .8rem;
}

.yoga-badge.excellent,
.yoga-badge.amrutha {
    background: var(--color-excellent-bg);
    color: #fff;
}

.yoga-badge.good,
.yoga-badge.siddha {
    background: var(--color-good);
    color: #333;
}

.yoga-badge.bad,
.yoga-badge.prabala {
    background: var(--color-bad);
    color: #333;
}

.yoga-badge.very-bad,
.yoga-badge.mruthyu {
    background: var(--color-very-bad);
    color: #fff;
}

/* Favorable indicators */
.favorable-icon.yes {
    color: var(--color-excellent);
    font-weight: bold;
}

.favorable-icon.no {
    color: var(--color-very-bad);
    font-weight: bold;
}

/* Stats badges */
.stats-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 500;
}

.badge-favorable {
    background: var(--color-favorable);
    color: #155724;
}

/* Stat cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-card .number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-card .label {
    color: var(--text-light);
    font-size: .875rem;
    margin-top: .3rem;
}

/* Person color dots */
.indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: .8rem;
    color: #fff;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.indicator.active-location {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

/* Result day cards */
.result-day-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.result-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.result-day-card.perfect-match {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fffef7 0%, #ffffff 100%);
}

.perfect-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    margin-left: .5rem;
}

/* Suggestions box (location autocomplete) */
.suggestions-box {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 100%;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin-top: 4px;
}

.suggestions-box div {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text);
    transition: background var(--transition);
}

.suggestions-box div:last-child {
    border-bottom: none;
}

.suggestions-box div:hover {
    background: var(--bg-section);
}

/* ── Differentiator / Wisdom sections ─────────────────────── */
.section-differentiation {
    background: var(--bg-section);
}

.section-differentiation .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.diff-list {
    list-style: none;
    font-size: .875rem;
}

.diff-list li {
    margin-bottom: .75rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.section-wisdom {
    max-width: 1152px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content {
        padding: 4rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        display: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Auth Specific Styles (login / register / forgot-password) ─── */

/* Header block inside auth card */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: .75rem;
}

.auth-header h1 {
    font-size: 1.6rem;
    margin-bottom: .3rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: .9rem;
}

/* Styled input (used alongside .form-input class in views) */
.form-input {
    display: block;
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .7rem 1rem;
    color: var(--text);
    font-size: .95rem;
    background: var(--bg-body);
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.form-input.is-invalid {
    border-color: #dc2626;
}

.form-error {
    display: block;
    font-size: .8rem;
    color: #dc2626;
    margin-top: .3rem;
}

/* Row — remember me + forgot link */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: .85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type=checkbox] {
    width: auto;
    accent-color: var(--color-primary);
}

.form-link {
    color: var(--color-primary);
    font-size: .85rem;
}

.form-link:hover {
    color: var(--color-primary-dark);
}

/* Full-width button */
.btn-full {
    width: 100%;
    justify-content: center;
}

/* OAuth divider line */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: .8rem;
}

.auth-divider>span {
    background: var(--bg-card);
    padding: 0 .75rem;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

/* OAuth provider buttons */
.btn-google:hover {
    border-color: #4285F4 !important;
}

.btn-facebook:hover {
    border-color: #1877F2 !important;
}

.btn-microsoft:hover {
    border-color: #00a4ef !important;
}

/* Footer sign-up / sign-in link */
.auth-footer-text {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.auth-footer-text a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-footer-text a:hover {
    color: var(--color-primary-dark);
}

/* ── Hero Video Panels ──────────────────────────────────────── */
.video-container {
    display: none;
}

@media (min-width: 768px) {
    .video-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 200px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 9 / 16;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.volume-button {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}

.volume-button:hover {
    background: rgba(0, 0, 0, 0.75);
}

.volume-button .hidden {
    display: none;
}

/* Section how-grid */
.section-how {
    max-width: 1152px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-how .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.how-step {
    text-align: center;
}

.section-description-mb {
    margin-bottom: 2rem;
}

/* ── Guest button ─────────────────────────────────────────── */
.btn-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    background: transparent;
    font-size: .875rem;
    font-weight: 500;
    text-align: center;
    transition: all .2s;
    text-decoration: none;
    margin-bottom: .25rem;
}

.btn-guest:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Top Header Styles */
.top-header {
    background: linear-gradient(135deg, var(--color-header) 0%, #34495e 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand:hover {
    color: white;
    opacity: 0.9;
}

.brand i {
    font-size: 1.5rem;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-header);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info-text {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.user-email {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
}

.dropdown-icon {
    transition: transform 0.3s;
}

.profile-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    padding: 8px;
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.profile-dropdown.active .dropdown-menu-custom {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-custom a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.dropdown-menu-custom a:hover {
    background: #f8f9fa;
    color: var(--color-nav);
}

.dropdown-menu-custom a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.dropdown-menu-custom a.logout-link {
    color: #dc3545;
}

.dropdown-menu-custom a.logout-link:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* Navigation Bar Styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--color-nav) 0%, #764ba2 100%);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: white;
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    /*position: absolute;*/
    /*right: 16px;*/
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    margin-left: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */

.heading-wrapper {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;

    .heading-menu {
        padding: 10px;
        font-size: 12px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .brand {
        font-size: 1.4rem;
    }

    .user-info-text {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-nav) 0%, #764ba2 100%);
        flex-direction: column;
        padding: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        border-left-color: white;
        border-bottom-color: transparent;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .dropdown-menu-custom {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .brand {
        font-size: 1.2rem;
    }

    .brand i {
        font-size: 1.2rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h5 {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar-container {
        flex-wrap: wrap;
        position: relative;
    }

    .user-info {
        font-size: 0.875rem;
    }

    .user-info>div {
        display: none;
    }
}

@media (max-width: 576px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

dialog {
    margin: auto;
    border: none;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.dialog-content {
    padding: 24px;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #000;
}

.main-card {
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.card-header-custom h3 {
    margin: 0;
    font-weight: 600;
}

.form-section {
    background: #f8f9fa;
    padding: 24px;
    border-bottom: 2px solid #e9ecef;
}

.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 2px;
}

.suggestions-box div {
    padding: 10px;
    cursor: pointer;
}

.suggestions-box div:hover {
    background: #f8f9fa;
}

.results-section {
    padding: 24px;
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.result-header h5 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.result-header .date-info {
    color: #666;
    font-size: 1rem;
    margin-top: 8px;
}

.timing-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header i {
    font-size: 1.5rem;
}

.section-header.day {
    color: #f59e0b;
}

.section-header.night {
    color: #3b82f6;
}

.section-header h6 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.table-container {
    background: white;
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}

.table-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 12px;
}

.table-section-header.day {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.table-section-header.night {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.table tbody tr {
    transition: all 0.3s;
}


.table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.table-success {
    background-color: #e8f5e9 !important;
}


.table-danger {
    background-color: #ffebee !important;
}


.table-active {
    position: relative;
    border-left: 4px solid rgb(255 215 0) !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

.active-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.active-indicator {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.good {
    background: var(--color-good);
    color: white;
}

.status-badge.bad {
    background: var(--color-bad);
    color: white;
}

.hora-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.table-success .hora-number {
    color: var(--color-good);
}

.table-danger .hora-number {
    color: var(--color-bad);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.legend {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 24px;
    margin-bottom: 8px;
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 8px;
    border: 2px solid;
}

.legend-box.good {
    background: #e8f5e9;
    border-color: var(--color-good);
}

.legend-box.bad {
    background: #ffebee;
    border-color: var(--color-bad);
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }
}

.main-card {
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.card-header-custom h3 {
    margin: 0;
    font-weight: 600;
}

.form-section {
    background: #f8f9fa;
    padding: 24px;
    border-bottom: 2px solid #e9ecef;
}

.person-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
    position: relative;
}

.person-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.person-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.remove-person-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-person-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.add-person-btn {
    width: 100%;
    padding: 20px;
    border: 2px dashed #dee2e6;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #6c757d;
    font-size: 1rem;
}

.add-person-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f8f9fa;
}

.add-person-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.yoga-checkbox {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 20px;
    background: white;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s;
}

.yoga-checkbox:has(input:checked) {
    border-color: var(--color-primary);
    background: #e8f5e9;
}

.yoga-checkbox.excellent:has(input:checked) {
    background: var(--color-excellent);
    color: white;
    border-color: var(--color-excellent);
}

.yoga-checkbox.good:has(input:checked) {
    background: var(--color-good);
    border-color: var(--color-good);
}

.yoga-checkbox.bad:has(input:checked) {
    background: var(--color-bad);
    border-color: var(--color-bad);
}

.yoga-checkbox.very-bad:has(input:checked) {
    background: var(--color-very-bad);
    color: white;
    border-color: var(--color-very-bad);
}

.yoga-checkbox input {
    margin-right: 8px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-card .label {
    color: #666;
    font-size: 0.875rem;
    margin-top: 8px;
}

.result-day-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.result-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.result-day-card.perfect-match {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fffef7 0%, #ffffff 100%);
}

.perfect-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.date-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.weekday {
    font-size: 0.875rem;
    color: #666;
    margin-left: 8px;
}

.timing-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    align-items: center;

    .favourable-data,
    .yoga {
        text-align: center;
    }
}

.timing-row:last-child {
    margin-bottom: 0;
}

.nakshatra-name {
    font-weight: 600;
    color: #7952b3;
}

.yoga-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.yoga-badge.excellent {
    background: var(--color-excellent);
    color: white;
}

.yoga-badge.good {
    background: var(--color-good);
    color: #333;
}

.yoga-badge.bad {
    background: var(--color-bad);
    color: #333;
}

.yoga-badge.very-bad {
    background: var(--color-very-bad);
    color: white;
}

.time-display {
    color: #666;
    font-size: 0.875rem;
}

.time-offset {
    font-size: 0.75rem;
    color: #e06666;
    font-weight: 600;
    margin-left: 4px;
}

.favorable-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: white;
}

.form-check {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    flex: 1;
}

.form-check:has(input:checked) {
    border-color: var(--color-primary);
    background: #e8f5e9;
}

.form-check-input {
    cursor: pointer;
}

.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 2px;
}

.suggestions-box div {
    padding: 10px;
    cursor: pointer;
}

.suggestions-box div:hover {
    background: #f8f9fa;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.legend {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 8px;
}

.legend-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

@media (max-width: 768px) {
    .timing-row {
        grid-template-columns: 2fr 2fr;
        gap: 8px;
        grid-template-areas:
            "nakshatra yoga"
            "favourable-data favourable-data";

        .favourable-data {
            grid-area: favourable-data;
        }

        .yoga {
            text-align: end;
        }
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }
}

.location-switchable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.location-switchable:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.indicator.active-location {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.location-label {
    display: inline-block;
    font-style: italic;
    transition: all 0.3s;
}

.time-text {
    transition: all 0.3s;
}


.results-section {
    padding: 24px;
}

.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.result-row {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-row td {
    padding: 16px;
    border: none;
}

.result-row td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.result-row td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.date-cell {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.yoga-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.yoga-badge.excellent {
    background: var(--color-excellent);
    color: white;
}

.yoga-badge.good {
    background: var(--color-good);
    color: #333;
}

.yoga-badge.bad {
    background: var(--color-bad);
    color: #333;
}

.yoga-badge.very-bad {
    background: var(--color-very-bad);
    color: white;
}

.time-range {
    color: #666;
    font-size: 0.875rem;
}

.nakshatra-name {
    color: #7952b3;
    font-weight: 500;
}

.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 2px;
}

.suggestions-box div {
    padding: 10px;
    cursor: pointer;
}

.suggestions-box div:hover {
    background: #f8f9fa;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .result-table {
        display: block;
    }

    .result-row {
        display: block;
        margin-bottom: 16px;
    }

    .result-row td {
        display: block;
        padding: 8px 16px;
        text-align: left !important;
    }

    .result-row td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 100px;
        color: #666;
    }

    .result-table thead {
        display: none;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-primary);
}

input:checked+.slider:before {
    transform: translateX(22px);
}