/* --- CSS Variables Configuration --- */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f4f8f2;
    /* Borders */
    --border-color: #d6e4d1;
    /* Text */
    --text-primary: #1b4332;
    --text-secondary: #2d6a4f;
    --text-muted: #52796f;
    /* Brand Green */
    --accent-color: #2e7d32;
    --sticky-header-bg: rgba(255, 255, 255, 0.85);
    --navbar-height: 64px;
    /* Modal Backdrop Color */
    --bsmodal-backdrop-bg: rgba(15, 42, 31, 0.672);

    /* Added Utility Variables for Inputs */
    --input-padding: 0.75rem 1rem;
    --input-radius: 8px;
    --input-focus-ring: rgba(46, 125, 50, 0.25);
    --transition-speed: 0.2s ease-in-out;
    --text-color: #fff;
}

/* Dark Mode Toggle Target */
html.dark {
    --bg-primary: #0f1a12;
    --bg-secondary: #15201a;
    --border-color: #284135;
    --text-primary: #f1f8f3;
    --text-secondary: #c7e6ce;
    --text-muted: #9cc5a5;
    --accent-color: #3a7a3d;
    --sticky-header-bg: rgba(15, 26, 18, 0.85);
    --bsmodal-backdrop-bg: rgba(0, 0, 0, 0.7);
    --input-focus-ring: rgba(58, 122, 61, 0.35);
}

/* Ensure padding doesn't break the 100% width layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ========================================================================
  1. Standard Text-Based Inputs, Textarea, and Select
  ========================================================================
*/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    padding: var(--input-padding);

    /* Background Highlight Strategy */
    background-color: var(--bg-secondary);
    /* Tinted default state to pop against white body */
    color: var(--text-primary);

    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    outline: none;
    transition: background-color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    appearance: none;
    /* Removes native OS styling */
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Hover States (Subtle border hint when hovering before focus) */
input[type="text"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="url"]:hover:not(:focus),
input[type="search"]:hover:not(:focus),
input[type="date"]:hover:not(:focus),
input[type="time"]:hover:not(:focus),
input[type="datetime-local"]:hover:not(:focus),
input[type="month"]:hover:not(:focus),
input[type="week"]:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
    border-color: var(--text-muted);
}

/* Focus States (Flips background color to draw maximum attention to the active field) */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
    background-color: var(--bg-primary);
    /* Swaps to clean primary contrast color */
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--input-focus-ring);
}

/* Disabled States */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================================================
  2. Custom Styling for Select Fields (Dropdown Arrow)
  ========================================================================
*/
select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232d6a4f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    /* Space for custom arrow */
}

/* Switch arrow color dynamically in dark mode */
html.dark select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c7e6ce'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
}

/* ========================================================================
  3. File Input Styling
  ========================================================================
*/
input[type="file"] {
    width: 100%;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--input-radius);
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

input[type="file"]:focus {
    background-color: var(--bg-primary);
    border-style: solid;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--input-focus-ring);
    outline: none;
}

input[type="file"]::file-selector-button {
    font-family: var(--font-sans);
    font-weight: 500;
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: calc(var(--input-radius) - 4px);
    cursor: pointer;
    margin-right: 1rem;
    transition: opacity var(--transition-speed);
}

input[type="file"]::file-selector-button:hover {
    opacity: 0.9;
}

/* ========================================================================
  4. Range Input (Slider)
  ========================================================================
*/
input[type="range"] {
    width: 100%;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

/* Track */
input[type="range"]::-webkit-slider-runnable-track {
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-moz-range-track {
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    margin-top: -5px;
    /* Centers thumb on track layout */
    background-color: var(--accent-color);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    border: none;
    background-color: var(--accent-color);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* ========================================================================
  5. Color Input
  ========================================================================
*/
input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 4px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

input[type="color"]:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--input-focus-ring);
    outline: none;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: calc(var(--input-radius) - 4px);
}

/* ========================================================================
  6. Form Action Buttons (Submit, Reset, Button inputs)
  ========================================================================
*/
input[type="submit"],
input[type="reset"],
input[type="button"] {
    width: 100%;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: var(--input-padding);
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: var(--input-radius);
    cursor: pointer;
    transition: filter var(--transition-speed), transform 0.1s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    filter: brightness(1.1);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active {
    transform: scale(0.99);
}

/* ========================================================================
  7. Checkboxes & Radios
  ========================================================================
*/
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    background-color: var(--bg-secondary);
    margin: 0;
    font: inherit;
    color: var(--accent-color);
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--border-color);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--bg-primary);
    background-color: CanvasText;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="radio"]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--bg-primary);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: max(2px, 0.15em) solid var(--accent-color);
    outline-offset: max(2px, 0.15em);
}

a {
    text-decoration: none;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem !important;
}

.success {
    color: #2e7d32;
    background-color: #c8e6c9;
    border: 1px solid #2e7d32;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-block: 1rem;
    text-align: center;
    font-weight: 600;
}

.error {
    color: #c62828;
    background-color: #ffcdd2;
    border: 1px solid #c62828;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-block: 1rem;
    text-align: center;
    font-weight: 600;
}

.is-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.is-flex-between {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.is_flex_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.edit_btn {
    background-color: #7b7b7b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;

}

.delete_btn {
    background-color: #c62828;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;

}

.btn_secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_danger {
    background-color: #c62828;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Page Base Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.content {
    padding: 24px;

}

.content h1 {
    font-size: 1.5rem;
    font-weight: 700;

}

/* Sticky Header Navbar */
.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .sticky-header {
    background-color: var(--sticky-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo Brand */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    user-select: none;
}

.logo-icon {
    aspect-ratio: 1 / 1;
    width: 40px;
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
    border: 1px solid var(--accent-color);
}



.logo-brand:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent-color);
}

/* Header UI Elements */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-secondary);
}

/* Alternating showing sun/moon icon depending on active theme class on <html> parent class */
.theme-toggle-btn .sun-icon {
    display: none;
}

.theme-toggle-btn .moon-icon {
    display: block;
}

html.dark .theme-toggle-btn .sun-icon {
    display: block;
    color: #fbbf24;
}

html.dark .theme-toggle-btn .moon-icon {
    display: none;
}

/* Hamburger Trigger Menu (Transforms on toggle) */
.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.mobile-hamburger .close-icon {
    display: none !important;
}

.mobile-hamburger .hamburger-icon {
    display: block !important;
}

.mobile-hamburger.is-active .close-icon {
    display: block !important;
}

.mobile-hamburger.is-active .hamburger-icon {
    display: none !important;
}

/* Two-column layout wrapper under sticky header */
.layout-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - var(--navbar-height));
    position: relative;
}

/* Sticky sidebar with independent scrolling */
.sidebar {
    height: calc(100vh - var(--navbar-height));
    position: sticky;
    top: var(--navbar-height);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 90;
    transition: background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

/* Chrome, Edge, Safari */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Main content area */
.main-section {
    min-width: 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Swipe drawer overlay standard styles on mobile layout */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 85;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Background scroll lock class */
body.scroll-locked {
    overflow: hidden !important;
    touch-action: none !important;
    height: 100vh !important;
}

.logo-text-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.copybtn{
    min-width:120px;
}

/* Media Queries for responsive breakpoints handling */
@media (max-width: 768px) {
    .copybtn{
        margin-top:10px;
    }
    .logo-text {
        font-size: 16px;
    }

    .layout-wrapper {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 1em;
    }

    .mobile-hamburger {
        display: flex;
    }

    .navbar-container {
        padding: 0 12px;
    }

    .logo-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        bottom: 0;
        width: 280px;
        height: calc(100vh - var(--navbar-height));
        transform: translateX(-100%);
        box-shadow: none;
        z-index: 95;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    }
}

@media (min-width: 769px) {
    .sidebar {
        transform: none !important;
    }
}

.sidebar-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.sidebar-menu-items a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.60rem 0.80rem;
    border-radius: 6px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    background-color: var(--bg-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-menu-items a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.sidebar-menu-items a.active {
    background-color: #dfffc1;
    color: #000;
}

.log_box {
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 5px 0.8rem;
    transition: all 0.2s ease;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.user-name {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.user-email {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.user_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.45rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-admin {
    background-color: #d5f8ff;
    color: #055160;
    border: 1px solid #055160;
}

.badge-user {
    background-color: #fff5d5;
    color: #9f7c05;
    border: 1px solid #9f7c05;
}

.logout-btn {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: var(--bg-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1px;
}

.logout-btn:hover {
    background: var(--border-color);
    color: var(--text-secondary);
    transform: translateY(-1px);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Optional: responsive design */
@media (max-width: 640px) {
    .log_box {
        padding: 0.75rem;
    }

    .user-info img {
        width: 32px;
        height: 32px;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .user-email {
        font-size: 0.7rem;
    }

    .logout-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

.user_footer .logout-btn {
    flex-grow: 1;
    margin-left: 1rem;
}














.bsmodal_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.bsmodal_backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bsmodal-backdrop-bg);
    transition: background-color 0.3s;

}


.bsmodal_dialog {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    width: 90%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease, background-color 0.3s, border-color 0.3s, max-width 0.3s;
    z-index: 1051;
    overflow: hidden;
}


.bsmodal_wrapper.bsmodal_default .bsmodal_dialog {
    max-width: 500px;
}


.bsmodal_wrapper.bsmodal_large .bsmodal_dialog {
    max-width: 800px;
}


.bsmodal_wrapper.bsmodal_fullscreen .bsmodal_dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
}


.bsmodal_wrapper.bsmodal_show {
    display: flex;
    opacity: 1;
}

.bsmodal_wrapper.bsmodal_show .bsmodal_dialog {
    transform: scale(1);
}


.bsmodal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    transition: border-color 0.3s, background-color 0.3s;
}

.bsmodal_title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.bsmodal_close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bsmodal_close:hover {
    color: var(--text-primary);
}

.bsmodal_body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    color: var(--text-secondary);
    overflow-y: auto;
    line-height: 1.6;
}

@keyframes bsmodal_shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.bsmodal_shake_anim {
    animation: bsmodal_shake 0.3s ease-in-out;
}


.bsmodal_close_highlight {
    color: #dc3545 !important;
    transform: scale(1.3);
}


/** * --- Modal Component Styles End --- */
.btn_big{
  background-color: #00422C;
    color: #fff;
    border: none;
    margin-top:3px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    min-width: 110px;
    text-align:center;  
    
}
.default-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    margin: 5px;
    font-family: var(--font-sans);
    min-width: 110px;
    text-align:center;
}

.default-btn:hover {
    filter: brightness(0.7);
}

.default-btn:disabled {
    background-color: #7b7b7b;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}



.default-btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    margin: 5px;
    min-width: 110px;
}

.default-btn-secondary:hover {
    filter: brightness(0.7);
}






.upload-container {
    margin: 0 auto;
    width: fit-content;
}

.upload-wrap {
    width: 160px;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.upload-wrap:hover {
    border-color: #4CAF50;
    background: #fafafa;
}

.upload-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-placeholder {
    font-size: 48px;
    color: #bbb;
}

.action-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #4CAF50;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    pointer-events: none;
    /* This allows clicks to pass through to parent */
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-list {
    margin-top: 20px;
    padding: 0px 12px;
}

.features-list p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

/***** */

.slider-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.slider-item.plan-card {
    flex-direction: column;
    align-items: flex-start;
}

.slider-item:hover {
    border-color: var(--accent-color);
}

.slider-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.drag-handle {
    cursor: grab;
    user-select: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    padding: 5px;
}

.drag-handle:active {
    cursor: grabbing;
}

.details {
    flex: 1;
    min-width: 0;
}

.details h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.details p {
    margin: 2px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.sortable-ghost {
    opacity: .4;
}

.sortable-chosen {
    transform: scale(1.02);
}

.sortable-chosen .slider-item,
.slider-item.sortable-chosen {
    border-color: var(--accent-color);
}

.slider-item .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width:600px) {

    .slider-item {
        gap: 10px;
        padding: 10px;
    }

    .slider-item img {
        width: 55px;
        height: 55px;
    }

    .details h3 {
        font-size: 14px;
    }

    .details p {
        font-size: 12px;
    }

    .drag-handle {
        font-size: 20px;
    }

}



/****** Slider Home ***/
/* Slider Wrapper */
.ch_slider_wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
}

/* Slider */
.ch_slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 15px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;

    touch-action: pan-x;
}

.ch_slider::-webkit-scrollbar {
    display: none;
}

/* Card */
.ch_slider_item {
    width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: .3s;
}

.ch_slider_item:hover {
    transform: translateY(-3px);
}
.shortcut-card.pending_active{
    border:2px dashed #f44336;
}
 .big_text{
     font-size:2em;
     font-weight:600;
 }

.ch_slider_image .ch_amount{
    position:absolute;
    top:10px;
    right:10px;
    padding:4px 8px;
    border-radius:20px;
    background:rgba(0,0,0,.7);
    color:#fff;
    font-size:14px;
    font-weight:600;
    line-height:1;
    
}

.ch_slider_image {
    aspect-ratio: 1/1;
    overflow: hidden;
     position:relative;
}

.ch_slider_image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ch_slider_name {
    margin: 12px;
    font-size: 15px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ch_slider_btn {
    display: block;
    margin: 0 12px 12px;
    padding: 10px;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

/* Desktop arrows only */
.ch_slider_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    cursor: pointer;
    z-index: 10;
    color: var(--text-primary);
    font-size: 20px;
}

.ch_slider_prev {
    left: 0;
}

.ch_slider_next {
    right: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .yesfull {
        height: 98%;
    }

    .ch_slider_name {
        margin: 12px 3px;
        font-size: 14px;

    }

    .ch_slider_btn {
        padding: 8px;
    }

    .ch_slider_wrap {
        padding: 16px 0px 0px 16px;
    }

    .ch_slider {
        grid-auto-columns: 180px;
    }

    .ch_slider_item {
        width: 180px;
    }

    /* Hide arrows on mobile */
    .ch_slider_arrow {
        display: none;
    }
}


.remove-feature {
    background-color: #ffb4b4;
    color: #c62828;
    border: 1px solid #c62828;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}


.login-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    width: 96%;
    max-width: 400px;
    margin: 40px auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    text-align: center;
}

.login-box h2 {

    font-size: 1rem;

}

.google_login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #000;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin-top: 1rem;

    /* --- Multicolor Border Magic --- */
    border: 3px solid transparent;
    /* Creates the space for the border */
    background-image:
        linear-gradient(#edf3ff, #ffffff),
        /* Layer 1: Inner Button Background */
        conic-gradient(#ea4335 0deg 90deg,
            /* Red */
            #fbbc05 90deg 180deg,
            /* Yellow */
            #34a853 180deg 270deg,
            /* Green */
            #4285f4 270deg 360deg
            /* Blue */
        );
    /* Layer 2: The Border Gradient */

    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

.google_login i {
    font-size: 18px;
}

/* Hover & Active States updated to smoothly change the inner background */
.google_login:hover {
    background-image:
        linear-gradient(#edfff0, #ffffff),
        conic-gradient(#ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;

    margin: 2em 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

.divider span {
    font-weight: 400;

    background-color: transparent;
    padding: 0;
}




/* Pagination Wrapper */
.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
}

.pagination-wrap b {
    color: var(--accent-color);
    font-weight: 700;
}

/* Pagination Container */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Pagination Links */
.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-speed);
}

/* Hover */
.pagination a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Active Page */
.pagination .current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

/* Previous & Next */
.pagination a:first-child,
.pagination a:last-child {
    padding: 0 16px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .pagination-wrap {
        flex-direction: column;
        text-align: center;
    }

    .pagination {
        justify-content: center;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
}

.small {
    font-size: 14px;
    color: var(--text-secondary);
}


.item {

    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blinkalert {
    color: red;
    animation: fade-blink 0.5s infinite;
}

@keyframes fade-blink {

    0%,
    100% {
        opacity: 1;
        /* Fully visible at start and end */
    }

    50% {
        opacity: 0.3;
        /* Fully invisible at the halfway point */
    }
}

.select {
    min-width: 200px;
    width: auto;
    padding: 8px 5px;
    font-size: 14px;
    border-radius: 6px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
}

.header_controls {
    display: flex;
    align-items: center;
    gap: 10px;

}

.link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {

    .select {
        flex-grow: 1;
        min-width: unset;
        max-width: unset;
        width: 200px;
    }
}



.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-btn.active {
    background: #000;
    color: #fff;
}

.alert_warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ecb91f;
    border-radius: 5px;
    margin-block: 1em;
    font-weight: 600;
}

.form-group {
    margin-top: 1em;
}

.price_grid_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}


.is_grid_wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 1em;
}


@media (max-width: 768px) {
    .is_grid_wrap {
        grid-template-columns: 1fr;
    }
    .price_grid_wrap {
    
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

}


.videos_section .item {
    cursor: pointer;
    padding: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 8px;
}

.videos_section .item.active_play {

    border: 3px solid var(--accent-color);
    background: var(--bg-secondary);
}

.videos_section .item.active_play .play_btn {
    color: var(--accent-color);
}

#videoPlayer {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
}

.responsive_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.videoBox {
    max-width: 900px;
    width: 100%;
    margin: 1em auto;
}


.bg-1 {
    /* Light pastel pink to soft lavender */
    background-image: linear-gradient(90deg, rgb(255, 214, 235), rgb(223, 196, 243));
}

.bg-2 {
    /* Soft pastel orange to pale yellow */
    background-image: linear-gradient(0deg, rgb(255, 198, 179), rgb(255, 218, 183), rgb(255, 241, 194));
}

.bg-3 {
    /* Pale sky blue to soft periwinkle */
    background-image: linear-gradient(37deg, rgb(204, 247, 250), rgb(194, 188, 255));
}

.bg-4 {
    /* Soft coral to muted rose pink */
    background-image: linear-gradient(353deg, rgb(255, 212, 209), rgb(235, 189, 212));
}

.bg-5 {
    /* Pale, muted indigo to soft powder blue */
    background-image: linear-gradient(90deg, rgb(215, 202, 233), rgb(203, 214, 247));
}


.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.subscription-card {
    color: #000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subscription-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.subscription-card .price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.subscription-card .duration {
    margin-bottom: 15px;
    font-weight: 600;
}

.subscription-features-list {
    flex: 1;
}

.subscription-features-list p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.subscription-features-list i {
    color: green;
}

.subscription-pay-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 14px 12px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    font-size: 17px;
    background-color: #000;
    color: #fff;
    transition: all var(--transition-speed);
    text-align: center;
}

.subscription-pay-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: scale(1.02);
}

/* Tablet */
@media (max-width:768px) {
    .subscription-grid {
        gap: 15px;
    }
}

/* Mobile */
@media (max-width:576px) {
    .subscription-grid {
        grid-template-columns: 1fr;
    }

    .subscription-card {
        padding: 15px;
    }

    .subscription-card .price {
        font-size: 1.7rem;
    }
}


.ul_img {
    border-radius: 50%;
    width: 60px;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* ul_ accordion */
.ul_item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.ul_header {
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    width: 100%;
    position: relative;
}

.item_row {
    position: relative;
}

.item_row h2 {
    font-size: 18px;
}

.bill_id {
    font-weight: 700;
    background-color: #ffdfea;
    color: #C62828 !important;
    border-radius: 20px;
    padding: 0 10px;
}

.user_badge {
    position: absolute;
    top: 0;
    right: 0;

    font-size: 13px;
    padding: 4px 8px;
    border-radius: 0px 6px 0px 6px;
    color: #fff;

}

.ul_arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition-speed);
    margin-left: 8px;
}

.ul_item.ul_open .ul_arrow {
    transform: rotate(180deg);
}

.ul_body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.ul_item.ul_open .ul_body {
    grid-template-rows: 1fr;
}

.ul_body-inner {
    overflow: hidden;

}

.ul_item.ul_open .ul_body-inner {
    padding-block: 14px;
    margin-inline: 10px;
    border-top: 1px solid var(--border-color);
    padding-inline: 10px;
}

/* ul_ tab content */
.ul_tab-panel {
    display: none;
    padding-top: 12px;
}

.ul_tab-panel.ul_panel-active {
    display: block;
}

/* ul_ tab active states */
.ul_tab.ul_tab-active {
    background: #d4edda;
    border-color: #a8d5b5;
    color: var(--accent-color);
}

.ul_tab {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-speed);
}


.delete-button {
    background-color: #FCE4EC;
    color: #C62828;
    border: 1px solid #C62828;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 10px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
}

.delete-button:hover {
    background-color: #C62828;
    border-color: #C62828;
    color: #fff;
}

.suspend-button {
    background-color: #FFF9C4;
    color: #9b7002;
    border: 1px solid #FBC02D;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 10px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
}

.suspend-button:hover {
    background-color: #FBC02D;
    border-color: #FBC02D;
    color: #fff;
}


.user-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 9px 11px;
}

.user-row {
    display: flex;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.user-row:last-child {
    border-bottom: none;
}

.user-label {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.user-value {
    color: var(--text-primary);
    font-weight: 700;
    flex: 1;
    word-break: break-word;
}

.trial-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.trial-options input {
    display: none;
}

.trial-card {
    cursor: pointer;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: .2s;
    background: var(--bg-primary);
    color: var(--text-primary);
    user-select: none;
}

.trial-card:hover {
    transform: translateY(-2px);
}

.trial-options input:checked+.trial-card {
    border-color: var(--border-color);
    background: var(--accent-color);
    color: var(--bg-primary);

}

.check-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.check-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}

.check-item {
    cursor: pointer;
    border: 2px solid var(--border-color, #ddd);
    border-radius: 10px;
    transition: .2s;
}

.check-item h3 {
    font-size: 13px;
    padding: 1px 10px;
    text-align: center;
    margin: 0;
}

.check-item p {
    font-size: 12px;
    text-align: center;
    margin: 0;
    padding: 1px;
}

.check-item.active {
    border-color: var(--accent-color);
    background: #eefea7;
    color: #000;

}

.check-item input[type="checkbox"] {
    display: none;
}


.stay_on_top {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    background: var(--bg-secondary);

    padding: 10px;


}

.box_layout {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 14px;
    max-width: 600px;
    width: 98%;
    margin: 0 auto;
    box-shadow: var(--shadow-1);
    margin-block: 12px;
}

.upi-qr {
    max-width: 200px;
    width: 100%;
    border-radius: 12px;
    text-align: center;
    display: block;
    margin-inline: auto;
    box-shadow: var(--shadow-1);
}


.copy-input {
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.copy-input input {
    width: 100%;
    padding: 5px !important;
    border: 1px dashed var(--accent-color);
    background-color: var(--bg-primary);
    border-radius: 8px;
    outline: none;
    color: inherit;
}

.copy-input button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: inherit;
}

/* Mobile First: Stacked 100% by default */
.sides {
    display: grid;
    grid-template-columns: 1fr;


}

/* Computer/Tablet: 30% and 70% split */
@media (min-width: 768px) {
    .sides {
        grid-template-columns: 40% 60%;
        /* Alternative using grid fractions for perfect alignment: */
        /* grid-template-columns: 3fr 7fr; */
    }
}

.side-2 {
    padding: 5px;
}

/* --- Razorpay Payment Button --- */
.razorpay_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1780fa 0%, #0b4ec7 100%);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(23, 128, 250, 0.3);
    transition: all var(--transition-speed);
    text-decoration: none;
    width: 100%;
    max-width: 290px;
    margin: 15px auto;
}

.razorpay_btn img {
    height: 22px;
    width: auto;
    object-fit: contain;
    /* Ensures black text SVG is converted to crisp white logo */
    filter: brightness(0) invert(1);
    transition: transform var(--transition-speed);
}

.razorpay_btn:hover {
    background: linear-gradient(135deg, #2b8cff 0%, #1765e8 100%);
    box-shadow: 0 6px 20px rgba(23, 128, 250, 0.45);
    transform: translateY(-2px);
}

.razorpay_btn:hover img {
    transform: scale(1.05);
}

.razorpay_btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(23, 128, 250, 0.2);
}

.razorpay_btn:focus-visible {
    outline: 3px solid rgba(23, 128, 250, 0.4);
    outline-offset: 2px;
}



.badge-0 {
    background: #055160;
    color: #d4edda;
}

.badge-1 {
    background: #fcf422;
    color: #000;
}

.badge-2 {
    background: #0b8a35;
    color: #d4edda;
}

.badge-3 {
    background: #c61f1f;
    color: #d4edda;
}

.approve {
    color: #0b8a35;
}

.reject {
    color: #c61f1f;
}


.approve-btn {
    background: #0b8a35;
    color: #d4edda;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100px;
    transition: var(--transition-speed);
    margin: 5px;
}

.reject-btn {
    background: #c61f1f;
    color: #d4edda;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100px;
    transition: var(--transition-speed);
    margin: 5px;
}

.approve-btn:hover {
    background: #0b8a35;
    color: #d4edda;
    transform: translateY(-2px);
}

.reject-btn:hover {
    background: #c61f1f;
    color: #d4edda;
    transform: translateY(-2px);
}


.approve-btn:active {
    transform: translateY(0);
}

.reject-btn:active {
    transform: translateY(0);
}


.button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
    margin: 5px;
    transition: var(--transition-speed);
}

.btn-1 {
    background: #0b8a35;
    color: #d4edda;
}

.btn-2 {
    background: #c61f1f;
    color: #d4edda;
}

.btn-3 {
    background: #6400e2;
    color: #d4edda;
}

.btn-1:hover,

.btn-2:hover,
.btn-3:hover {

    transform: translateY(-2px);
}

.error_box {
    margin: 50px auto;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    background: #fee;
    color: #c00;
    border: 1px solid #fbb;
    border-radius: 6px;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.success-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.success-icon-wrapper i {
    font-size: 70px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-container h2 {
    color: #28a745;
    margin: 10px 0;
}

.success-container .details-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
    text-align: left;
}

.success-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.success-container th,
.success-container td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.success-container th {
    width: 35%;
    background: #f8f9fa;
    font-weight: 600;
}

.success-container td {
    width: 65%;
}

.success-container code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.success-container .amount {
    color: #28a745;
    font-size: 16px;
}

.success-container .status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 12px;
    text-transform: capitalize;
}


@media (max-width: 600px) {
    .mobile_mt-3 {
        margin-top: 15px !important;
    }




    .success-container th,
    .success-container td {
        padding: 8px;
        font-size: 14px;
    }

}


.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-list a {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    white-space: nowrap;
    background: transparent;
}

.category-list a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Mobile: single row with horizontal scroll */
@media (max-width:768px) {
    .category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-list a {
        flex: 0 0 auto;
    }
}


/******* Bill Start ***/

.bill_invoice {
    max-width: 1000px;
    margin: auto;
    background: var(--background-light);
    border: 1px solid var(--border-color);
}

.bill_header {
    background: #156516;
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bill_logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, .2);
}

.bill_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bill_business_name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bill_owner {
    font-size: 14px;
}

.bill_info_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    gap: 10px;

    color: var(--text-secondary);
    font-size: 13px;
}

.bill_info_row strong {
    color: #156516;
}

.bill_address {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: var(--text-secondary);
}

.bill_address_title {
    color: #156516;
    font-weight: 700;
    margin-bottom: 5px;
}

.bill_meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #ddd;
}

.bill_meta_box {
    padding: 15px;
}

.bill_meta_label {
    display: block;
    font-size: 13px;
    color: #156516;
    font-weight: 700;
    margin-bottom: 5px;
}

.bill_meta_value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
}

.bill_customer {
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #ddd;
    gap: 20px;
    cursor: pointer;
}

.bill_customer:hover {
    background-color: var(--bg-secondary);
}

.bill_customer_label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.bill_customer_name {

    color: #156516;
    font-weight: 700;
}

.bill_customer_phone {
    text-align: right;
}

.bill_table_wrap {
    overflow-x: auto;
}

.bill_table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.bill_table thead {
    background: #156516;
    color: #fff;
}

.bill_table th {
    padding: 12px;
    border: 1px solid #0d4d0d;

}

.bill_table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.bill_product_img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.bill_total_row {
    background: #156516;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-weight: 700;
}

.bill_total_label {
    font-size: 18px;
}

.bill_total_amount {
    font-size: 36px;
}

@media(max-width:768px) {



    .bill_header {
        padding: 8px;
        text-align: center;
    }

    .bill_business_name {
        font-size: 20px;
    }

    .bill_owner {
        font-size: 13px;
    }


    .bill_meta_value {
        font-size: 14px;
    }

    .bill_address {
        font-size: 14px;
    }



    .bill_customer_phone {
        text-align: left;
    }


    .bill_customer_name {
        font-size: 15px;
    }

    .bill_total_label {
        font-size: 16px;
    }

    .bill_total_amount {
        font-size: 24px;
    }


    .bill_table {

        font-size: 12px;

    }
}


/******* Bill End ***/



.ia_form {
    max-width: 500px;
    margin: auto;
}

.ia_label {
    display: block;
    margin: 15px 0 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
}

.ia_sizes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ia_size input {
    display: none;
}

.ia_size span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: 2px solid #b8d9b5;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    color: #1b6d1b;
}

.ia_size input:checked+span {
    background: #176a1d;
    border-color: #176a1d;
    color: #fff;
}

.ia_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}





@media(max-width:480px) {
    .ia_sizes {
        grid-template-columns: repeat(2, 1fr);
    }

    .ia_row {

        gap: 3px;
    }

    .ia_form,
    .ia_label {
        font-size: 13px;

    }
}

.modal_info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal_info img {
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 80px;
}

@media(max-width:768px) {
    .modal_info img {
        width: 50px;
    }

    .modal_info {
        font-size: 14px;
    }
}

.bottom_buttons {
    max-width: 600px;
    margin: 1em auto;
}

.bottom_buttons button {
    width: 100%;
    background: linear-gradient(90deg, #2196f3, #1976d2);
    border: none;
    padding: 15px;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
}

.edit-item {
    cursor: pointer;
}

.edit-item:hover {
    background-color: var(--bg-secondary);
}


.pm_wrap {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.pm_card {
    flex: 1;
}

.pm_card input {
    display: none;
}

.pm_box {
    position: relative;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    transition: .2s;
    background: var(--bg-secondary);
}

.pm_radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.pm_icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
}

.pm_title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 1px;
}

.pm_desc {
    font-size: 13px;
    color: #777;
}

/* Online */
.pm_online input:checked+.pm_box {
    border-color: #0d6efd;
    background: #eef5ff;
    color: #0d6efd;
}

.pm_online input:checked+.pm_box .pm_radio {
    background: #0d6efd;
    border-color: #0d6efd;

}

/* Cash */
.pm_cash input:checked+.pm_box {
    border-color: #ff6a00;
    background: #fff7ef;
    color: #ff6a00;
}

.pm_cash input:checked+.pm_box .pm_radio {
    background: #ff6a00;
    border-color: #ff6a00;

}


.back-btn {
    font-size: 13px;
    color: #1b6d1b;
    font-weight: 700;
    text-decoration: none;
    background-color: #ddd;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 5px 15px;
}

.top_bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.b_flex {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}


.b_amount {
    font-weight: 700;
    color: #279a1b;
    background-color: #e8ffd2;
    padding: 3px 8px;
    border-radius: 5px;
    text-align: center;
    min-width: 100px;
}

.b_date {
    font-size: 13px;
    color: #000;
    background-color: #edf6ff;
    padding: 3px 8px;
    border-radius: 5px;
    text-align: center;

}

.b_method {
    font-size: 13px;
    color: #000;
    padding: 3px 8px;
    border-radius: 5px;
    text-align: center;
    min-width: 80px;
}


.b_method.cash {
    background-color: #fcf2f8;
}

.b_method.online {
    background-color: #fffdd4;
}

.notification {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    padding: 10px;
    border-radius: 10px;
    margin: 20px;
    background-color: #fff7ef;
    color: #ff6a00;
    border: 1px dashed #ff6a00;

    /* Triggers once on load */
    animation: gentleNudge 0.5s ease-in-out;
}

@keyframes gentleNudge {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-4px);
    }

    40%,
    80% {
        transform: translateX(4px);
    }
}

.notification a {
    color: white;
    text-decoration: none !important;
    background-color: #0b4ec7;
    padding: 5px 10px;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}

@media(max-width:768px) {
    .notification a {
        margin-left: 0px;
        margin-top: 1em !important;
        display: block;
        width: fit-content;
        margin-inline: auto;
    }
}


.stock {
    font-weight: 600;
    font-size: 14px;
    padding: 2px 8px;
}

.low {
    color: #e94d4d;
}

.sf-btn {
    background-color: var(--accent-color);
    color: white;
    border-radius: 5px;
    padding: 4px 15px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    border: none;
    display: block;
    width: fit-content;
}

.sf_form {
    position: relative;
    width: 100%;
}

.sf_input {
    width: 100%;
    height: 46px;
    padding: 0 50px 0 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}



.sf_btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #000000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width:576px) {
    .flex-wrap {
        flex-wrap: wrap;
    }

    .sf_input {
        height: 42px;
        font-size: 13px;
    }

    .sf_btn {
        width: 32px;
        height: 32px;
    }
}



.billing_stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.5em;
    background-color: var(--accent-color);
    color: var(--text-color);

    border-radius: 10px;
}

.b_card_1 {
    text-align: left;
    justify-content: left;
    display: flex;
    flex-direction: column;
    padding: 1em 10px;
}

.b_card_2 {
    text-align: right;
    justify-content: right;
    display: flex;
    flex-direction: column;
    padding: 1em 10px;
}

.b_card_1 div:first-child,
.b_card_2 div:first-child {
    font-size: 13px;
}

.b_card_1 div:last-child,
.b_card_2 div:last-child {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width:576px) {

    .b_card_1 div:first-child,
    .b_card_2 div:first-child {
        font-size: 11px;
    }

    .b_card_1 div:last-child,
    .b_card_2 div:last-child {
        font-size: 15px;
    }
}

.filter_buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.5em;
    gap: 10px;
}

.filter_buttons a {
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    border: none;
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: var(--bg-secondary);
    width: 100%;
    color: var(--text-primary);
    font-weight: 700;
}

.filter_buttons a:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.filter_buttons a.active {
    background-color: #ffb800;
    pointer-events: none;

}





.crp_preview_wrap {
    width: 220px;
    height: 220px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    margin: auto;
}

.crp_preview {
    max-width: 100%;
    display: block;
}

.crp_btn {
    padding: 10px 20px;
    border: none;
    background: #464618;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.crp_btn:hover {
    opacity: .9;
}


.button_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.button_grid a {
    padding: 10px 20px;
    border: none;
    background: #464618;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}



.sub_box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 1em;
}

.sub_head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sub_title {
    font-size: 20px;
    font-weight: 700;
}

.sub_badge {
    background: var(--bg-primary);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.sub_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.sub_date {
    text-align: center;
}

.sub_date strong {
    display: block;
    font-size: 18px;
}

.sub_center {
    text-align: center;
}

.sub_days {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.sub_label {
    font-size: 13px;
    color: #666;
}

.sub_progress {
    height: 14px;
    background: #edf2ed;
    border-radius: 30px;
    overflow: hidden;
    margin: 15px 0;
}

.sub_progress_bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 30px;
}

.sub_footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.ch-flex {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

@media(max-width:768px) {
    .sub_title {
        font-size: 13px;
        font-weight: 700;
    }

    .sub_date strong {

        font-size: 14px;
    }

    .sub_days {
        font-size: 30px;

    }

    .mobile_margin {
        margin-top: 10px !important;
    }

    .ch-flex {
        display: flex;
        gap: 8px;
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }
}




/* Container: Responsive grid that switches layout naturally */
.home_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
    padding: 1em;
}

/* Individual Card */
.home_card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--input-radius);
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.home_card:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}


/* Left Section: Icon + Text layout */
.home_card_left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Icon Styling using secondary background and secondary text tokens */
.home_card_icon {
    font-size: 1.35rem;
    color: #0b4ec7;
    background-color: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text Hierarchy */
.home_card_title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

/* Left side small value (total bills count) */
.home_card_left .home_card_value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Right Section: Large prominent total amount styling */
.home_card_right .home_card_value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-color);
    /* Uses your brand green theme token */
}



/* Container styling */
.home_shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    padding: 16px;
}

.home_shortcuts button {


    padding: 0;
    font-weight: 500;
}

/* Individual Card Styling */
.shortcut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 20px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    font-weight: 500;
}

/* Tap/Hover effect */
.shortcut-card:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Icon Container */
.icon-wrapper {
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Font Awesome Specific Styling */
.icon-wrapper i {
    font-size: 28px;
    color: #2e7d32;
    /* A nice plant-themed green */
}

/* Emoji Styling - Positioned slightly like a badge or used as secondary visual */
.emoji-fallback {
    font-size: 14px;
    position: absolute;
    bottom: -4px;
    right: -10px;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Text Label Styling */
.shortcut-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.2px;
}

.cam_btn {
    display: none;
}

@media(max-width:768px) {
    .cam_btn {
        display: inline-block;
    }

    .home_shortcuts {

        gap: 10px;
        padding: 10px;
    }

}



.page_content {
    line-height: 1.7;
    word-wrap: break-word;
}

.page_content p {
    margin: 0 0 1rem;
}

.page_content h1,
.page_content h2,
.page_content h3,
.page_content h4,
.page_content h5,
.page_content h6 {
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
    font-weight: 600;
}

.page_content h1 {
    font-size: 2rem;
}

.page_content h2 {
    font-size: 1.75rem;
}

.page_content h3 {
    font-size: 1.5rem;
}

.page_content h4 {
    font-size: 1.25rem;
}

.page_content h5 {
    font-size: 1.1rem;
}

.page_content h6 {
    font-size: 1rem;
}

.page_content ul,
.page_content ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.page_content li {
    margin-bottom: 0.5rem;
}

.page_content a {
    text-decoration: underline;
}

.page_content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.page_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow-x: auto;
    display: block;
}

.page_content th,
.page_content td {
    border: 1px solid;
    padding: 10px;
    text-align: left;
}

.page_content blockquote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid;
}

.page_content pre {
    overflow-x: auto;
    padding: 1rem;
}

.page_content code {
    font-family: monospace;
}

.page_content hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid;
}




 .site-footer {
        background-color: var(--bg-secondary);
        color: var(--text-muted);
        padding: 24px 16px;
        font-family: var(--font-sans);
        font-size: 14px;
        border-top: 1px solid var(--border-color);
        transition: background-color var(--transition-speed), border-color var(--transition-speed);
    }

    .footer-container {
       
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    /* Contact Links Structure */
    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .contact-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color var(--transition-speed), transform var(--transition-speed);
    }

    .contact-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    /* Dynamic Hover & Active Interactions */
    .contact-item:hover {
        color: var(--accent-color);
        transform: translateY(-1px);
    }

    /* Keeps original brand accent identities cleanly unified on hover if preferred, 
       otherwise fallback to your system's custom system --accent-color */
    .contact-item.whatsapp:hover { color: #25D366; }
    .contact-item.email:hover { color: #ea4335; }

    /* Muted Copyright layout */
    .footer-copyright {
        color: var(--text-muted);
        font-size: 13px;
    }

    /* Responsive adjustments for Tablets/Desktop */
    @media (min-width: 768px) {
        .footer-container {
            flex-direction: row;
            justify-content: space-between;
            text-align: left;
        }

        .footer-contact {
            flex-direction: row;
            justify-content: flex-start;
            gap: 28px;
            width: auto;
        }
    }