:root {
    --heading-color: #1a1a1a;
    --accent-color: #9f1f63;
    --accent-light: #fce4ec;
    --accent-gradient: linear-gradient(135deg, #9f1f63 0%, #6d1544 100%);
    --bg-primary: #ffffff;
    --bg-secondary: #fffafa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(159, 31, 99, 0.05);
    --shadow-accent: 0 10px 30px rgba(159, 31, 99, 0.2);
    --glass: rgba(255, 255, 255, 0.85);

    /* Spacing Constants */
    --section-padding: 8rem 2rem;
    --container-max: 1300px;
    --form-radius: 15px;
    --header-height: 70px;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 70px;
    
    /* Status Colors */
    --status-success-bg: #e8f5e9;
    --status-success-text: #2e7d32;
    --status-pending-bg: #fff8e1;
    --status-pending-text: #f9a825;
    --status-warning-bg: #fff8e1;
    --status-warning-text: #f9a825;
    --status-danger-bg: #ffebee;
    --status-danger-text: #c62828;
    --status-info-bg: #e3f2fd;
    --status-info-text: #1976d2;
}

/* Grid Utilities */
.grid-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: white;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.table-responsive table {
    width: 100%;
    min-width: 900px; /* Increased for better individual scroller */
    border-collapse: separate;
    border-spacing: 0;
}

/* Table to Cards on Mobile */
@media (max-width: 768px) {
    .table-mobile-cards, .table-mobile-cards thead, .table-mobile-cards tbody, .table-mobile-cards th, .table-mobile-cards td, .table-mobile-cards tr {
        display: block;
    }
    
    .table-mobile-cards {
        min-width: 100% !important;
        background: transparent !important;
    }
    
    .table-mobile-cards thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-mobile-cards tr {
        border: 1px solid #eaeaea;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        background: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        overflow: hidden;
    }
    
    .table-mobile-cards td {
        border: none;
        border-bottom: 1px solid #f5f5f5;
        position: relative;
        padding: 1rem 1rem 1rem 45% !important;
        text-align: right !important;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .table-mobile-cards td:before {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 40%;
        text-align: left;
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--text-secondary);
        content: attr(data-label);
        white-space: nowrap;
    }
    
    .table-mobile-cards td:last-child {
        border-bottom: 0;
        background: #fafafa;
        justify-content: center;
        padding-left: 1rem !important; /* Center the action button */
    }
    .table-mobile-cards td:last-child:before {
        display: none; /* Hide label for final action row */
    }
}


/* Outdated/Grace Period Styles */
.status-outdated {
    border-left: 4px solid var(--accent-color);
    background: rgba(159, 31, 99, 0.02) !important;
}

.badge-outdated {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 1.5rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

.section-standard {
    padding: var(--section-padding);
}

.container-standard {
    max-width: var(--container-max);
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Admin Specific Typography */
.content-area h1 {
    font-size: 1.8rem !important;
}

.content-area h2 {
    font-size: 1.5rem !important;
}

.content-area h3 {
    font-size: 1.3rem !important;
}

.content-area h4 {
    font-size: 1.1rem !important;
}

/* Dashboard Layout */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem !important;
    margin-bottom: 0.25rem !important;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
        margin-bottom: 2rem !important;
    }

    .dashboard-header .btn-premium {
        width: 100%;
        text-align: center;
    }

    .content-area h1 {
        font-size: 1.5rem !important;
    }
}

/* Buttons */
.btn-premium {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-accent);
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(158, 31, 99, 0.3);
}

/* Standardized Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-view {
    background: #0a0a1a;
    color: #64ffda;
}

.btn-view:hover {
    background: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

.btn-edit {
    background: #f0f0f5;
    color: #262261;
}

.btn-edit:hover {
    background: #e1e1eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 34, 97, 0.1);
}

.btn-delete {
    background: #fff0f0;
    color: #c0392b;
}

.btn-delete:hover {
    background: #ffe5e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.1);
}

/* Cards */
/* .luxury-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    border-color: rgba(158, 31, 99, 0.1);
} */

/* Navbar */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

header.scrolled {
    padding: 0 5%;
    background: var(--white);
    height: 70px;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        transition: all 0.4s ease;
        padding: 2rem;
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem !important;
    }

    nav ul li a {
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: slideInDown 1s ease-out;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Swiper */
.hero-swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    transform: translateZ(0);
    /* Add this for better swiper transition rendering */
}

/* Ensure only active slide content is visible to prevent overlap */
.swiper-slide:not(.swiper-slide-active) .hero-content-glass {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.swiper-slide-active .hero-content-glass {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.slide-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 15% 10%;
    /* Shows girl on left, brings head down */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Aligns content to the right on desktop */
    padding-right: 10%;
}

.hero-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-90deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content-glass {
    position: relative;
    z-index: 5;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    border-radius: 0;
    max-width: 50%;
    margin: 0;
    box-shadow: none;
    text-align: right;
    /* Right side text alignment */
    animation: fadeInUp 1s ease-out;
}

.swiper-slide-active .hero-content-glass {
    visibility: visible;
}

.hero-content-glass h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-content-glass p {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 3rem;
    opacity: 1;
    font-weight: 400;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
}

.hero-content-glass .btn-group {
    justify-content: flex-end;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 991px) {
    .hero-swiper {
        height: auto; /* Allow height to be determined by content or aspect-ratio */
        min-height: 50vh;
    }

    .slide-item {
        aspect-ratio: 4/5; /* Typical portrait aspect ratio to show more image */
        height: auto;
        min-height: 50vh;
        justify-content: center;
        padding: 2rem 1rem;
        background-position: center center;
        background-size: cover;
    }

    .hero-content-glass {
        max-width: 100%;
        text-align: center;
        padding: 1.5rem;
    }

    .hero-content-glass h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-content-glass p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content-glass .btn-group {
        justify-content: center;
        flex-direction: row;
        gap: 1rem;
    }

    .hero-overlay-premium {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 480px) {
    .hero-swiper {
        height: 50vh;
    }
    
    .hero-content-glass h1 {
        font-size: 1.8rem;
    }
    
    .hero-content-glass p {
        display: none; /* Hide description on very small screens to focus on image/title */
    }
}

/* Swiper Controls Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    background: rgba(159, 31, 99, 0.3);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: var(--white) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    opacity: 1 !important;
    width: 30px !important;
    border-radius: 10px !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rates Section */
.rates-section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.rate-card {
    border-top: 6px solid var(--accent-color);
    text-align: center;
}

.rate-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
    margin: 1.5rem 0;
}

/* Tabs */
.tabs-container {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2.5rem;
    border: 2px solid #eee;
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-accent);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-content.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    background: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(158, 31, 99, 0.05);
}

/* Footer */
footer {
    background: #0a0a1a;
    color: #fff;
    padding: 6rem 2rem 3rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

footer h4 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-content-glass h1 {
        font-size: 3.5rem;
    }

    .rates-grid {
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* .luxury-card {
        padding: 2rem;
    } */
    .badge-outdated {
        background: var(--accent-color);
        color: white;
        padding: 0.2rem 0.6rem;
        border-radius: 4px;
        font-size: 0.75rem;
        animation: pulse-red 2s infinite;
    }

    @keyframes pulse-red {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.05); opacity: 0.8; }
        100% { transform: scale(1); opacity: 1; }
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero-content-glass h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
        letter-spacing: -1px;
    }

    .hero-content-glass p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .btn-premium {
        padding: 0.8rem 1.8rem;
        width: 100%;
        font-size: 0.9rem;
    }

    .rates-section {
        padding: 3.5rem 1rem;
    }

    .rate-card .price {
        font-size: 2.2rem;
    }

    .tabs-nav {
        gap: 0.8rem;
    }

    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 1rem);
    }

    .form-control {
        padding: 1rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-content {
        gap: 2.5rem;
    }
}

/* Small devices */
@media (max-width: 480px) {
    .hero-content-glass h1 {
        font-size: 2rem;
    }

    .tab-btn {
        flex: 1 1 100%;
    }
}