/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #f8fafc;
    /* Light background */
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 1. Header Styling (Full Width) */
.header {
    width: 100%;
    /* Light Orange Background (Matches Footer) */
    background: #ffedd5;
    color: #431407;
    padding: 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Ensures the header content is contained and centered */
.header-container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0;
    /* Removed padding since header-bottom moved out */
    border-bottom: none;
    /* Removed border since header-bottom moved out */
}

@media (min-width: 768px) {
    .header-top {
        flex-direction: row;
        gap: 0;
        position: relative;
        justify-content: space-between;
    }

    .id-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        margin: 0;
    }
}

/* Village Title Container */
.village-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.village-title {
    font-size: 1.5rem;
    font-weight: 800;
    /* Extra bold */
    color: #c2410c;
    /* Dark Orange */
    text-align: left;
    line-height: 1.2;
    margin: 5px;
}

/* UPDATED SIZE */
.gp-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    margin: -5px 0;
    /* Anti-margin to not push header height */
}

/* ID Center Styling */
.id-center {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.id-label {
    font-size: 0.875rem;
    /* sm */
    font-weight: 600;
    /* Semibold */
    text-transform: uppercase;
    opacity: 0.75;
}

.id-value {
    font-size: 1.25rem;
    /* xl */
    font-weight: 900;
    /* Black */
    color: white;
    background-color: #c2410c;
    /* Orange-700 */
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin: 0.1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.census-id {
    font-size: 0.75rem;
    /* xs */
    font-weight: 600;
    color: #c2410c;
    /* Dark Orange */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Seal and Language Select Container */
.seal-lang-container {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Center the seal and the select box */
    gap: 0.25rem;
    /* Small space between seal and language select */
}

/* MODIFIED: MH Seal Styling to resemble GP logo */
.rajya-mudra-logo {
    width: 85px;
    /* Matched size of GP logo */
    height: 85px;
    /* Matched size of GP logo */
    object-fit: contain;
    border-radius: 5px;
    /* Matched style */
    border: 0px solid #fed7aa;
    /* Subtle border from Orange-200 */
    margin: -5px 0;
    /* Anti-margin */
}

.lokseva_hakka {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    border: 0;
    position: absolute;
}

.mh_gov_logo {
    width: 80px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    border: 0;
    position: absolute;
}

.aaple_sarkar {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    border: 0;
}

/* left logo */
.mh_gov_logo {
    left: 1rem;
    /* small inset from parent's left edge */
}

/* right logo */
.lokseva_hakka {
    right: 1rem;
    /* small inset from parent's right edge */
}

.lang-select {
    background-color: #c2410c;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.lang-select:hover {
    background-color: #9a3412;
}

/* Header Bottom Row (PM/CM/Population) - NOW OUTSIDE HEADER */
.header-bottom {
    /* Ensures background stretches full width */
    width: 100%;

    /* Background, color, shadow, transition */
    background-color: #ffedd5;
    /* Light Orange-100 */
    color: #1f2937;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Stays below the main header and scrolls with it initially */
    position: sticky;
    top: 88px;
    /* Estimated height of the main header to stick right below it */
    z-index: 30;
    /* Below header (40), above content */

    /* ADDED: Transition for collapse effect */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    overflow: hidden;
    max-height: 250px;
    /* Reverted for single-row layout plus some padding */
}

/* NEW: Inner container to align content within the full-width bar */
.full-width-container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ADDED: Collapsed state for Header Bottom on scroll */
.header-bottom.hidden-on-scroll {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-100%);
    /* Visually move it up */
}


.leadership-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile default */
    gap: 1rem;
    align-items: start;
    justify-content: center;
    font-size: 0.75rem;
    /* xs */
}

@media (min-width: 768px) {
    .leadership-list {
        grid-template-columns: repeat(10, 1fr);
        /* Total 10 items in a single row */
        gap: 0 0.5rem;
        /* Horizontal gap minimized to fit 10 items */
        font-size: 0.7rem;
        /* Reduced font size for multi-item row */
        justify-content: center;
        max-width: 1400px;
        margin: 0 auto;
    }
}

.leader-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.leader-item span,
.leader-item p {
    color: #1f2937;
    text-align: center;
    width: 100%;
    /* Dark text for names */
}

.leader-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .leader-img {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }
}

/* NEW: Initials Placeholder for Leaders */
.leader-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: #fdba74;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .leader-initials {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
        border-width: 3px;
    }
}

.leader-item span {
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Population Box and List */
.population-box {
    /* MODIFIED: Color scheme inside the light green bar */
    background-color: #fed7aa;
    /* Orange-200 for population box */
    padding: 0.5rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align all content to the right */
}

.population-label {
    font-size: 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9a3412;
    /* Dark orange */
    margin-bottom: 0.5rem;
    text-align: right;
}

.population-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    /* Push items to the right */
    gap: 0.5rem 1rem;
}

.population-list li {
    color: #9a3412;
    font-weight: 500;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.population-value-item {
    font-weight: 700;
    font-weight: 700;
    color: #431407;
    /* Very dark orange/brown */
    text-align: right;
    flex-shrink: 0;
}

/* Mobile Menu (Hamburger) */
.mobile-menu-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #c2410c;
    /* Dark Orange */
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background-color: #fed7aa;
    /* Light Orange hover */
}

.md-hidden {
    display: block;
}

.md-flex {
    display: none;
}

@media (min-width: 768px) {
    .md-hidden {
        display: none;
    }

    .md-flex {
        display: flex;
    }
}

/* Mobile Sidebar and Overlay (No change) */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 256px;
    /* 64 */
    height: 100%;
    background-color: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav {
    padding: 1rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    /* Gray-700 */
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.sidebar-nav a:hover {
    background-color: #fff7ed;
    /* Orange-50 */
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: black;
    opacity: 0.5;
    z-index: 49;
    display: none;
}

.sidebar-overlay.visible {
    display: block;
}

/* 2. Main Layout (Desktop: Sidebar + Content) */
.main-layout-wrapper {
    /* Fallback/Mobile styles */
    display: flex;
    flex-direction: column;
    max-width: auto;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    /* Adjust based on header height */
    padding: 0 1rem;
    transition: grid-template-columns 0.3s ease-in-out;
    /* ADDED: Transition for smooth content resizing */
}

/* NEW: Desktop 3-column Grid Layout */
@media (min-width: 1024px) {
    .main-layout-wrapper {
        /* Default: Sidebar OPEN */
        grid-template-columns: 250px 1fr 340px;
        gap: 1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 1560px;
        padding: 0 1rem;
        display: grid;
        /* Ensure grid is set */
    }

    /* ADDED: Grid adjustment for collapsed sidebar (60px) */
    .main-layout-wrapper.sidebar-is-collapsed {
        grid-template-columns: 60px 1fr 340px;
        /* Collapsed Sidebar (60px) | Wider Content (1fr) | Right Sidebar (340px) */
    }
}

/* Desktop Sidebar (Left Menu) */
.desktop-sidebar {
    width: 250px;
    flex-shrink: 0;
    transition: width 0.3s ease-in-out;
    padding: 1rem;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;

    /* REMOVED: margin-top: 1rem; */

    /* MODIFIED: Fixed height with overflow for independent scrollbar */
    position: sticky;
    top: 10rem;
    z-index: 20;

    height: calc(100vh - 12rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #fed7aa transparent;

    display: none;

    /* ADDED: Transition for smooth resizing */
    transition: width 0.3s ease-in-out;
}

/* Custom Scrollbar for Desktop Sidebar */
.desktop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.desktop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.desktop-sidebar::-webkit-scrollbar-thumb {
    background-color: #fed7aa;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .desktop-sidebar {
        display: block;
    }
}

/* Desktop Right Sidebar for Schemes */
.desktop-right-sidebar {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    border: none;

    /* MODIFIED: Fixed height with overflow for independent scrollbar */
    position: sticky;
    top: 10rem;
    /* Sticks right below the full fixed header block (approx 160px) */
    z-index: 20;

    height: calc(100vh - 12rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #fed7aa transparent;

    border-radius: 0.75rem;

    display: block;
}

/* Custom Scrollbar for Desktop Right Sidebar */
.desktop-right-sidebar::-webkit-scrollbar {
    width: 6px;
}

.desktop-right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.desktop-right-sidebar::-webkit-scrollbar-thumb {
    background-color: #fed7aa;
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .desktop-right-sidebar {
        display: block;
        width: auto;
    }
}

/* Adjust Sidebar Section Title style */
.desktop-right-sidebar .section-title,
.sidebar-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c2410c;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f97316;
    /* Full line separator */
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

/* Right Sidebar Links as Cards */
.desktop-right-sidebar a {
    background-color: white;
    border: 1px solid #fed7aa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-right-sidebar a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #f97316;
}

/* Sidebar Separator - Hiding redundant separator since title has border */
.sidebar-separator {
    display: none;
}

/* Sidebar Schemes List Style */
.sidebar-schemes {
    padding-top: 0;
}

/* Collapse rules for sidebar elements */
.desktop-sidebar.collapsed .sidebar-section-title,
.desktop-sidebar.collapsed .sidebar-separator {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
}

/* Census Section Styling */
.census-section {
    width: 100%;
}

.census-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.census-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.census-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

.village-name {
    font-size: 1rem;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(194, 65, 12, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    white-space: normal;
    word-wrap: break-word;
}

.census-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.census-item {
    display: flex;
    flex-direction: column;
}

.census-label {
    font-size: 0.7rem;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
}

.census-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.census-item.full-width {
    grid-column: span 2;
    background: rgba(194, 65, 12, 0.05);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.desktop-sidebar-header {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #fed7aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c2410c;
    transition: opacity 0.3s ease-in-out;
}

.collapse-btn {
    background: #f97316;
    color: white;
    border: none;
    padding: 0.4rem;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s, transform 0.3s;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.collapse-btn:hover {
    background: #ea580c;
    transform: scale(1.1);
}

.desktop-nav a {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    color: #c2410c;
    font-weight: 500;
    transition: background-color 0.2s, padding 0.3s;
    line-height: 1.4;
    white-space: normal;
}

.desktop-nav a:hover {
    background-color: #fed7aa;
}

.desktop-nav a .icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    transition: margin-right 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

/* Collapsed State (Menu) */
.desktop-sidebar.collapsed {
    width: 60px;
    padding: 1rem 0.5rem;
}

.desktop-sidebar.collapsed .desktop-sidebar-header {
    justify-content: center;
}

.desktop-sidebar.collapsed .desktop-sidebar-header h3 {
    display: none;
}

.desktop-sidebar.collapsed .desktop-nav a {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.desktop-sidebar.collapsed .desktop-nav a span:not(.icon) {
    display: none;
}

.desktop-sidebar.collapsed .desktop-nav a .icon {
    font-size: 1.5rem;
    margin-right: 0;
}


.content-area {
    flex-grow: 1;
    padding: 1rem 0;
    overflow-x: hidden;
}

/* Main Content Grid - Simplified to 1 column */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Image Slideshow Section - Will shrink automatically */
.slideshow {
    margin-bottom: 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    height: 400px;
    background-color: transparent;
    border: 4px solid #ffffff;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
    left: 1rem;
}

.slide-nav.next {
    right: 1rem;
}

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    animation: fadeIn 1s ease-in-out;
}

.slideshow-image.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

/* Card and Section Styles */
section {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}

/* Override section background for the schemes inside the new sidebar */
#desktop-right-sidebar section {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}


.section-title {
    font-size: 1.875rem;
    /* 3xl */
    font-weight: 700;
    color: #c2410c;
    /* Orange-700 */
    border-bottom: 4px solid #f97316;
    /* Orange-500 */
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.gp-member-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gp-member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.member-card {
    background-color: #f9fafb;
    /* Gray-50 */
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    /* Fix vertical alignment */
    justify-content: flex-start;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    /* This is good for text */
    padding: 1rem;
    border-radius: 0.5rem;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Admin Member Specific Styling */
.admin-member-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .admin-member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.member-img,
.member-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-initials {
    background-color: #fdba74;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    /* Gray-800 */
    margin-bottom: 1px;
}

.member-designation {
    color: #ea580c;
    /* Orange-600 */
    font-weight: 600;
    margin-top: 1px;
}

.member-since {
    font-size: 0.875rem;
    color: #6b7280;
    /* Gray-500 */
    margin-top: 0.25rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    padding: 1rem;
    border-left-width: 4px;
    border-radius: 0.5rem;
}

.info-item h4 {
    font-weight: 700;
    font-size: 1.125rem;
}

.info-item p {
    font-size: 0.875rem;
}

/* Specific Info Colors (No change) */
.alert {
    background-color: #fffbeb;
    /* Yellow-100 */
    border-color: #f59e0b;
    /* Yellow-500 */
}

.alert h4,
.alert p {
    color: #b45309;
    /* Yellow-700 */
}

.news {
    background-color: #fff7ed;
    /* Orange-50 */
    border-color: #f97316;
    /* Orange-500 */
}

.news h4,
.news p {
    color: #9a3412;
    /* Orange-800 */
}

.notice {
    background-color: #f3f4f6;
    /* Gray-100 */
    border-color: #6b7280;
    /* Gray-500 */
}

.notice h4,
.notice p {
    color: #374151;
    /* Gray-700 */
}

/* Schemes Section */
.schemes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scheme-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #ffedd5;
    /* Orange-100 */
    color: #9a3412;
    /* Orange-800 */
    border-radius: 0.5rem;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, box-shadow 0.2s, border 0.2s;
    /* Added transitions */
    border: 2px solid transparent;
    /* Default transparent border */
}

.scheme-link:hover {
    background-color: #fed7aa;
    /* Orange-200 */
}

/* NEW: Selected Scheme Style */
.scheme-link.selected {
    background-color: #ffffff;
    /* White background for selection */
    color: #c2410c;
    /* Darker orange text */
    font-weight: 700;
    border: 2px solid #f97316;
    /* Orange border to highlight */
    box-shadow: 0 0 0 3px #fdba74, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /* Glow effect */
    pointer-events: none;
    /* Make it unclickable when selected */
}

.scheme-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    stroke-width: 2;
}

/* --- NEW STYLES FOR PMAY DETAIL PAGE --- */
.scheme-detail-box {
    padding: 1.5rem;
    background-color: #fff7ed;
    /* Orange-50 */
    border-radius: 0.75rem;
    border: 1px solid #fed7aa;
    /* Orange-200 */
}

.scheme-detail-box h3 {
    color: #c2410c;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #fdba74;
}

.scheme-detail-box p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #374151;
}

.detail-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ea580c;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.detail-list {
    /* Uses data-use-html to render list items from script.js */
    list-style: disc;
    margin-left: 1.5rem;
    color: #374151;
    margin-bottom: 1.5rem;
}

/* Ensure the list items defined in script.js look correct */
.detail-list li {
    margin-bottom: 0.5rem;
}

/* Style for numbered lists defined in script.js */
.detail-list.numbered-list {
    list-style-type: decimal;
}

.scheme-link-external {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #f97316;
    /* Orange-500 */
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background-color 0.2s;
}

.scheme-link-external:hover {
    background-color: #c2410c;
    /* Orange-600 */
}

.scheme-link-external .scheme-icon {
    stroke: white;
    margin-left: 0.75rem;
    margin-right: 0;
}

/* --- END NEW STYLES --- */


/* Footer (No structural change) */
.footer {
    background-color: #ffedd5;
    /* Orange-100 */
    color: #431407;
    /* Orange-950 */
    margin-top: 2.5rem;
    padding: 2rem 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

    .footer-container>div:last-child {
        text-align: right;
    }
}

.footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #c2410c;
    /* Orange-700 */
}

.footer a {
    color: #ea580c;
    /* Orange-600 */
}

.footer a:hover {
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.footer strong {
    font-weight: 600;
}

.footer p:last-child {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: #9a3412;
    /* Orange-800 */
}

/* Keyframe for fade-in (needed outside the original block for CSS file) */
@keyframes fadeIn {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

.member-grid {
    display: grid;
    /* This creates a responsive grid of cards, min width of 220px */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    /* Gray-200 */
    border-radius: 0.5rem;
    background-color: #ffffff;
    /* White background */
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-card .member-img,
.member-card .member-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    flex-shrink: 0;
    border: 3px solid #fdba74;
    /* Light Orange border for photo/initials */
}

.member-card .member-initials {
    background-color: #fdba74;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-card .member-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

@media (min-width: 640px) {
    .member-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

.sidebar-nav a.active {
    background-color: #ffedd5;
    /* light orange */
    color: #c2410c;
    /* orange text */
    font-weight: 600;
    border-left: 4px solid #f97316;
}

.sidebar-nav a.selected,
.desktop-nav a.selected,
.schemes-list a.selected {
    background-color: #ffedd5;
    /* Light orange */
    color: #c2410c !important;
    /* Strong orange */
    font-weight: 600;
    border-bottom: 4px solid #f97316;
    border-right: none;
    border-top: none;
    border-left: none;
    padding-left: 0.75rem;
    border-radius: 4px;
}

.sidebar-nav a.selected {
    background: #fed7aa;
    font-weight: 700;
    color: #9a3412;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    overflow: visible;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* base layer */
    transform-origin: center center;
    will-change: transform;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: scale(1.25) translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(234, 88, 12, 0.3);
    z-index: 50;
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #ddd;
}

/* Fix: remove bottom hairline from images */
.gallery-card img,
.doc-logo,
.lightbox-img {
    display: block;
    /* remove inline baseline gap */
    border: 0;
    /* remove any default border */
    vertical-align: middle;
}

.gallery-card {
    line-height: 0;
}

/* Grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* Contact card base */
.contact-card {
    background: #f8faff;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid #f97316;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

    /* Prevent flicker */
    will-change: transform, box-shadow;
    transform: translateZ(0);

    /* Smooth static height */
    min-height: 135px;

    /* Avoid layout jumps */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 220ms cubic-bezier(.2, .9, .2, 1),
        box-shadow 220ms cubic-bezier(.2, .9, .2, 1),
        background-color 250ms ease,
        opacity 250ms ease;
    transform-origin: center center;
}

/* PERFECT FLICKER-FREE HOVER */
.contact-card:hover {
    opacity: 0.98;
    /* slight dim effect */
    background-color: #fff7ed;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    /* slightly stronger but subtle */
    transform: translateY(-6px) scale(1.1);
    /* gentle zoom + lift */
    cursor: pointer;
}

/* Role title */
.contact-role {
    font-size: 17px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card p {
    margin: 2px 0;
    font-size: 14px;
}

.contact-card a {
    color: #f97316;
    font-weight: 600;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.footer-contact-info p a {
    color: #f7b731;
    /* Use a highlight color (e.g., gold or orange) */
    text-decoration: none;
    /* Remove the default underline */
    transition: color 0.3s ease;
    /* Smooth hover effect */
}

.footer-contact-info p a:hover {
    color: #fff;
    /* Change to white on hover */
    text-decoration: underline;
    /* Re-introduce underline on hover */
}

/* =========================================
   GP SERVICES DOCUMENT STYLING
   ========================================= */

.document-container {
    width: 100%;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
    margin: 0 auto;
    /* Center the document */
    font-family: Arial, "Nirmala UI", sans-serif;
    color: #000;
}

.doc-header .title-main {
    font-size: 1.5em;
    font-weight: bold;
    padding-top: 5px;
}

.doc-header .title-sub {
    font-size: 0.9em;
    font-weight: normal;
}

/* General Sections */
.document-container .section {
    padding: 0 15px 10px 15px;
}

/* Reference List */
.reference-section p {
    font-size: 0.85em;
    margin-bottom: 5px;
    margin-top: 0;
}

.reference-section .ref-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    counter-reset: ref-counter;
}

.reference-section .ref-list li {
    font-size: 0.8em;
    padding-left: 15px;
    text-indent: -15px;
}

.reference-section .ref-list li:before {
    content: counter(ref-counter) ")";
    counter-increment: ref-counter;
    font-weight: bold;
    margin-right: 5px;
}

/* Table Section */
.section-title-table {
    background: linear-gradient(90deg, #ffedd5 0%, #fed7aa 100%);
    /* Light Gradient */
    color: #c2410c;
    /* Dark Orange */
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    padding: 7px 5px;
    margin: 10px -15px 0 -15px;
    border-bottom: 2px solid #fdba74;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75em;
    margin-top: 5px;
    table-layout: fixed;
}

.doc-table,
.doc-table th,
.doc-table td {
    border: 1px solid #333;
}

.doc-table th,
.doc-table td {
    padding: 4px 5px;
    text-align: left;
    height: 30px;
    vertical-align: middle;
}

.doc-table thead th {
    background-color: #ffedd5;
    /* Light Orange */
    font-weight: bold;
    color: #431407;
}

/* Table Column Widths */
.doc-table td:nth-child(1) {
    width: 8%;
    text-align: center;
}

.doc-table td:nth-child(2) {
    width: 32%;
}

.doc-table td:nth-child(3) {
    width: 15%;
    text-align: center;
}

.doc-table td:nth-child(4) {
    width: 15%;
    text-align: center;
}

.doc-table td:nth-child(5) {
    width: 30%;
}

/* Blue Title List Section */
.section-title-list {
    background: linear-gradient(90deg, #ffedd5 0%, #fed7aa 100%);
    /* Light Gradient */
    color: #c2410c;
    /* Dark Orange */
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    padding: 7px 5px;
    margin: 15px -15px 0 -15px;
    border-bottom: 2px solid #fdba74;
}

.list-content {
    background-color: #fff7ed;
    /* Light Orange BG */
    border: 1px solid #ccc;
    display: flex;
    padding: 10px;
    font-size: 0.8em;
    line-height: 1.4;
    margin-top: 5px;
}

.list-content .doc-list {
    padding-left: 20px;
    margin: 0;
    width: 50%;
}

.list-content li {
    margin-bottom: 5px;
}

/* Instruction Section */
.instruction-section {
    padding-top: 5px;
}

.instruction-section .doc-instruction-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.8em;
    line-height: 1.4;
    counter-reset: instr-counter;
}

.instruction-section .doc-instruction-list li {
    padding-left: 15px;
    text-indent: -15px;
    margin-bottom: 10px;
}

.instruction-section .doc-instruction-list li:before {
    content: counter(instr-counter) ")";
    counter-increment: instr-counter;
    font-weight: bold;
    margin-right: 5px;
}

/* Document Footer */
.doc-footer {
    border-radius: 2px;
    border: 1px solid #333;
    color: #020202;
    text-align: center;
    font-size: 0.85em;
    padding: 5px 5px;
    margin: 5px;
}

/* === START: CSS for MAHSUL VIBHAG DOCUMENT VIEW (add to style.css) === */
/* Add these variables if they are NOT already defined in your :root block */
:root {
    --deep-blue: #9a3412;
    --vivid-blue: #c2410c;
    --gold: #ffd400;
    --red: #c62828;
    --table-header: #fb923c;
    /* Orange-400 */
    /* NEW variable */
    --muted: #444;
    --paper: #fffdf8;
}

/* Document Container Styling (Use this for the wrapper elements) */
.preview-container {
    background: #fff;
    border-radius: 18px;
    padding: 0;
    transform: translateY(0);
    transition: 0.35s ease;
    margin: 20px 0;
    /* Add margin to fit in the content area */
}

.card {
    margin: 0 auto;
    background: var(--paper);
    box-shadow: 0 8px 10px rgba(20, 20, 30, 0.12);
    overflow: hidden;
}

/* Header Styling */
.doc-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(90deg, #ffedd5 0%, #fed7aa 100%);
    padding: 20px;
    color: #c2410c;
    border-bottom: 2px solid #fdba74;
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #f97316;
}

.title-top {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2px;
    text-align: center;
}

.title-main {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #9a3412;
    /* Darker Orange for Title */
    text-align: center;
}

.title-sub {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Body and Section Styling */
.doc-body {
    padding: 20px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.section-title {
    color: #c2410c;
    /* Deep Orange */
    border-bottom: 2px solid #f97316;
    /* Orange-500 full width */
    padding-bottom: 0.5rem;
    display: block;
    width: 100%;
}

/* Table Styling */
.service-table-wrapper {
    overflow-x: auto;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.doc-table th,
.doc-table td {
    padding: 10px 8px;
    border: 1px solid #ccc;
}

.doc-table thead {
    background: var(--table-header);
    color: white;
}

.doc-table th {
    font-weight: 700;
}

.doc-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.col-center {
    text-align: center;
}

/* Column width adjustments for the Mahsul Services table */
.doc-table td:nth-child(1) {
    width: 5%;
}

.doc-table td:nth-child(2) {
    width: 30%;
}

.doc-table td:nth-child(3),
.doc-table td:nth-child(4) {
    width: 10%;
    text-align: center;
}

.doc-table td:nth-child(5),
.doc-table td:nth-child(6),
.doc-table td:nth-child(7) {
    width: 15%;
}

/* Instruction Section */
.instruction-section {
    padding-top: 10px;
    color: var(--muted);
}

.doc-instruction-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 5px;
    line-height: 1.5;
}

/* Footer Styling */
.footer {
    background: #ffedd5;
    /* Light Orange */
    color: #431407;
    /* Dark Orange/Brown text */
    padding: 15px 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.footer h4 {
    color: #c2410c;
    /* Dark Orange */
    margin-bottom: 5px;
}

.footer a {
    color: #ea580c;
    /* Bright Orange */
    text-decoration: none;
}

/* === END: CSS for MAHSUL VIBHAG DOCUMENT VIEW === */

/* --- LIGHTBOX OVERLAY (General) --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark overlay */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.visible {
    display: flex;
    opacity: 1;
}

/* --- YOUTUBE GALLERY STYLES --- */

/* --- YOUTUBE GALLERY STYLES --- */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* Mobile: 1 column */
    gap: 1.5rem;
    padding: 10px 0;
}

@media (min-width: 768px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Desktop: 2 columns */
    }
}

.video-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #fed7aa;
    /* Light Orange Border */
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    border-color: #f97316;
    /* Dark Orange Hover */
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: background 0.2s, transform 0.2s;
    border: 2px solid white;
}

.video-card:hover .play-icon-overlay {
    background: #c2410c;
    /* Dark Orange */
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Lightbox Specifics */
.video-lightbox-content {
    width: 90%;
    max-width: 900px;
    /* Larger max width for video */
    aspect-ratio: 16/9;
    padding: 0;
    /* No padding for full video */
    background: black;
    display: flex;
    /* Centering */
    flex-direction: column;
}

.video-container {
    width: 100%;
    flex-grow: 1;
    /* Take remaining height */
    position: relative;
    border-radius: 8px;
    /* Smooth corners */
    overflow: hidden;
    /* optional */
}

/* Close button positioning for video lightbox - Updated to be inside/corner */
.video-lightbox-content {
    position: relative;
    /* Anchor for close button if placed outside, but here we place inside or relative to this */
}

.video-lightbox-content .close-lightbox {
    position: absolute;
    top: -40px;
    /* Default desktop position above video */
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    padding: 0;
    line-height: 1;
    z-index: 1001;
    /* Ensure above overlay content */
    opacity: 0.9;
    transition: opacity 0.2s;
}

.video-lightbox-content .close-lightbox:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Adjustment for Close Button - Move inside if screen is small/landscape */
@media (max-width: 768px),
(max-height: 500px) {
    .video-lightbox-content .close-lightbox {
        top: 5px;
        right: 5px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        padding-bottom: 4px;
        /* visual center adjustment */
    }
}

/* Self Declaration Section */
#self-declaration-section {
    padding: 1rem 0;
}

.self-dec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.self-dec-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.self-dec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #f97316;
}

.self-dec-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #ef4444;
    /* Red for PDF */
}

.self-dec-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.self-dec-download-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Confirmation Dialog */
.confirmation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.confirmation-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.confirmation-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.confirmation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.confirmation-message {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-confirm,
.btn-cancel {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.btn-confirm {
    background-color: #f97316;
    color: white;
}

.btn-confirm:hover {
    background-color: #ea580c;
}

.btn-cancel {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-cancel:hover {
    background-color: #d1d5db;
}