/**
 * Premium Customer Dashboard - Optimized Structural DNA
 * 1:1 Parity with Admin Dashboard Flexbox Grid
 */

:root {
    --iris-primary: #86b255;
    --iris-secondary: #64b5f6;
    --iris-text: #1a1a1a;
    --iris-text-light: #666;
    --iris-border: #e8e8e8;
    --iris-bg-light: #f5f5f5;
    --iris-bg-white: #ffffff;
    --iris-danger: #dc3545;
    --iris-success: #28a745;
    --iris-warning: #ffc107;
}

/* ========================================
   GLOBAL RESET & ROOT FLEXBOX
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Force full-width override for WordPress themes */
body.page #iris-frontend-app,
body #iris-frontend-app,
.site-content #iris-frontend-app,
.entry-content #iris-frontend-app,
main #iris-frontend-app,
article #iris-frontend-app {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 !important;
}

#iris-frontend-app {
    all: initial;
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    overflow: hidden;
    background: #ffffff;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999;
    margin: 0 !important;
    padding: 0 !important;
}

/* The exact structural twin of .iris-saas-dashboard-root in Admin */
#iris-frontend-app .iris-saas-dashboard-root {
    display: flex !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================
   SIDEBAR - Physical Flex Child
   ======================================== */
#iris-frontend-app .iris-sidebar {
    flex: 0 0 260px !important;
    /* Forces rigid 260px width */
    width: 260px !important;
    height: 100vh;
    background: var(--iris-bg-white);
    border-right: 1px solid var(--iris-border);
    display: flex;
    flex-direction: column;
    position: relative !important;
    /* NOT fixed, to stay in flex flow */
    z-index: 100;
    overflow-y: auto;
}

/* Sidebar Brand/Logo Area */
.iris-sidebar-brand {
    padding: 20px !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.iris-brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.iris-logo-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

.iris-logo-text {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.iris-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.iris-sidebar-close:hover {
    color: #dc3545;
}

/* Sidebar User Info */
.iris-sidebar-user {
    padding: 16px 20px !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.iris-user-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

.iris-user-info {
    display: flex !important;
    flex-direction: column !important;
}

.iris-user-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

.iris-user-role {
    font-size: 12px !important;
    color: #666 !important;
}

/* Balance Card in Sidebar */
.iris-balance-card-container {
    padding: 0 20px 10px;
}

.iris-balance-minimal {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    margin-top: 15px;
}

.iris-balance-value {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

/* Sidebar Navigation */
.iris-sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

/* ========================================
   WORKSPACE - Fluid Flex Child
   ======================================== */
/* WORKSPACE - Fluid Flex Child */
#iris-frontend-app .iris-main-content {
    flex: 1 !important;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
    /* Visible Grey for Contrast */
    overflow: hidden;
    /* STOP scrolling the wrapper */
    position: relative;
    /* REMOVED: margin-left: 260px (Flexbox handles this now) */
}

/* AJAX Anchor - Fills the workspace */
#iris-page-container {
    width: 100%;
    padding: 30px;
    min-height: 100%;
}

/* ========================================
   HEADER - Fixed at top of workspace
   ======================================== */
/* HEADER - Fixed at top of workspace via Flex */
.iris-dashboard-header {
    background: var(--iris-bg-white);
    border-bottom: 1px solid var(--iris-border);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Not sticky anymore, just first flex item */
    z-index: 50;
    flex-shrink: 0;
}

.iris-dashboard-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--iris-text);
}

/* Header button base */
.iris-header-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Home button removed - styles cleaned up */

/* Option A - Logout: green text, no background */
.iris-header-logout {
    background: transparent;
    border: none;
    color: #7cb342;
    font-weight: 700;
}
.iris-header-logout:hover {
    color: #5e9b2f;
    text-decoration: underline;
}

/* ========================================
   TAB NAVIGATION STYLES (Admin Parity)
   ======================================== */
.iris-sidebar .iris-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    margin: 4px 0;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
    cursor: pointer;
    border: none;
    background: none;
    width: auto;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.iris-sidebar .iris-nav-item:hover {
    background: #f8f9fa;
    color: #333;
}

.iris-sidebar .iris-nav-item.active {
    background: #edfce6;
    color: #558b2f;
    font-weight: 600;
    border-left-color: #8cc63f;
}

.iris-sidebar .iris-nav-icon {
    font-size: 14px;
    width: 16px;
    color: inherit;
    text-align: center;
    display: inline-block;
}



/* ========================================
   CONTENT CARDS (KPIs)
   ======================================== */
.iris-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.iris-stat-card,
.iris-kpi-card {
    background: var(--iris-bg-white);
    border: 1px solid var(--iris-border);
    border-radius: 16px;
    /* Elevated style */
    padding: 30px;
    /* Increased padding for density */
    display: flex;
    align-items: center;
    /* Perfect vertical centering */
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer elevated shadow */
}

/* Icon container for KPI cards */
.iris-kpi-card .iris-kpi-icon,
.iris-stat-card .iris-kpi-icon {
    background: rgba(134, 178, 85, 0.1);
    color: #86b255;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Sidebar icon fixed width to prevent text misalignment */
.iris-nav-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
    margin-right: 12px;
    display: inline-block;
}

/* Enforce FontAwesome rendering for sidebar icons */
.iris-nav-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal;
}

/* Strict 3-column grid for Quick Action area */
.iris-action-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 20px;
}

.iris-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border: 1px solid var(--iris-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.iris-action-btn i {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--iris-primary);
}

/* Animations for Tab Switching */
@keyframes irisFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iris-tab-content {
    animation: irisFadeIn 0.3s ease-out;
}

/* ========================================
   RESPONSIVE OVERRIDES (Admin Parity)
   ======================================== */
/* ========================================
   RESPONSIVE OVERRIDES (Admin Parity)
   ======================================== */
.iris-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 8px;
}

@media (max-width: 1024px) {
    /* UNLOCK SCROLL ON MOBILE - Hybrid Approach */
    /* On mobile, we let the whole page scroll naturally to avoid address bar bugs */

    html,
    body {
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden;
    }

    .iris-saas-dashboard-root {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    .iris-main-content {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        /* Stack normally */
    }

    /* Header stays at top naturally in block flow */

    #iris-page-container {
        height: auto !important;
        overflow: visible !important;
    }

    /* Fixed Sidebar (Off-Canvas) remains fixed */
    .iris-sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .iris-sidebar.active {
        transform: translateX(0);
        /* Shown when toggled */
    }

    .iris-mobile-toggle {
        display: block;
        /* Show hamburger */
    }

    .iris-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .iris-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========================================
   SIDEBAR - Physical Flex Child
   ======================================== */
.iris-sidebar {
    flex: 0 0 260px !important;
    /* Forces rigid 260px width */
    width: 260px !important;
    height: 100vh;
    background: var(--iris-bg-white);
    border-right: 1px solid var(--iris-border);
    display: flex;
    flex-direction: column;
    position: relative !important;
    /* NOT fixed, to stay in flex flow */
    z-index: 100;
    overflow-y: auto;
}

/* ========================================
   WORKSPACE - Fluid Flex Child
   ======================================== */
.iris-main-content {
    flex: 1 !important;
    /* Automatically takes all remaining space */
    min-width: 0;
    /* Critical for responsive grid items */
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--iris-bg-light);
    /* REMOVED: margin-left: 260px (Flexbox handles this now) */
}

/* ACCOUNT PAGE CONTAINER - The Scrollable Area */
#iris-page-container {
    flex: 1;
    /* Take remaining height */
    overflow-y: auto;
    /* Scroll THIS area */
    overflow-x: hidden;
    width: 100%;
    padding: 30px;
    min-height: 0;
    /* Flexbox scroll fix */
    box-sizing: border-box;
}

/* ========================================
   HEADER - Fixed at top of workspace
   ======================================== */
.iris-dashboard-header {
    background: var(--iris-bg-white);
    border-bottom: 1px solid var(--iris-border);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.iris-dashboard-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--iris-text);
}

/* ========================================
   TAB NAVIGATION STYLES (Admin Parity)
   ======================================== */
.iris-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 12px;
    color: var(--iris-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.iris-nav-item:hover {
    background: rgba(134, 178, 85, 0.08);
    color: var(--iris-primary);
}

.iris-nav-item.active {
    background: rgba(134, 178, 85, 0.12);
    color: var(--iris-primary);
    font-weight: 600;
    border-left-color: var(--iris-primary);
}

/* ========================================
   CONTENT CARDS (KPIs)
   ======================================== */
.iris-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.iris-stat-card,
.iris-kpi-card {
    background: var(--iris-bg-white);
    border: 1px solid var(--iris-border);
    border-radius: 16px;
    /* Elevated style */
    padding: 30px;
    /* Increased padding for density */
    display: flex;
    align-items: center;
    /* Perfect vertical centering */
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer elevated shadow */
}

/* Icon container for KPI cards */
.iris-kpi-card .iris-kpi-icon,
.iris-stat-card .iris-kpi-icon {
    background: rgba(134, 178, 85, 0.1);
    color: #86b255;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Sidebar icon fixed width to prevent text misalignment */
.iris-nav-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
    margin-right: 12px;
    display: inline-block;
}

/* Enforce FontAwesome rendering for sidebar icons */
.iris-nav-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal;
}

/* Strict 3-column grid for Quick Action area */
.iris-action-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 20px;
}

.iris-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border: 1px solid var(--iris-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.iris-action-btn i {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--iris-primary);
}

/* Animations for Tab Switching */
@keyframes irisFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iris-tab-content {
    animation: irisFadeIn 0.3s ease-out;
}

/* ========================================
   RESPONSIVE OVERRIDES (Admin Parity)
   ======================================== */
@media (max-width: 1024px) {
    .iris-sidebar {
        position: fixed !important;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .iris-sidebar.active {
        transform: translateX(0);
    }
}

/* ========================================
   MODAL STYLES (Premium & Smooth)
   ======================================== */
.iris-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Ensure the modal is visible when active (handled by JS style=block) */

.iris-modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2001;
    overflow: hidden;
    animation: irisSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--iris-border);
    margin: auto;
    /* Centering */
}

.iris-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--iris-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.iris-modal-header h3,
.iris-modal-content h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--iris-text);
}

.iris-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--iris-text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.iris-modal-close:hover {
    color: var(--iris-danger);
}

/* Form Styles inside Modal */
.iris-form-group {
    margin-bottom: 20px;
    padding: 0 24px;
}

.iris-form-group:first-of-type {
    padding-top: 24px;
}

.iris-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--iris-text);
    font-size: 14px;
}

.iris-input,
.iris-select,
.iris-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--iris-border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--iris-bg-white);
    box-sizing: border-box;
}

.iris-input:focus,
.iris-select:focus,
.iris-form-control:focus {
    border-color: var(--iris-primary);
    box-shadow: 0 0 0 3px rgba(134, 178, 85, 0.15);
    outline: none;
}

/* SEGMENTED CONTROL / RADIO PILLS */
.iris-segmented-control {
    display: flex;
    gap: 16px;
}

.iris-segment-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    margin: 0;
}

.iris-segment-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Default State */
.iris-segment-option .iris-segment-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

/* Hover State */
.iris-segment-option:hover .iris-segment-label {
    background: #eef2f5;
    border-color: #d0d0d0;
}

/* Checked State - Male */
.iris-segment-option input[value="Male"]:checked+.iris-segment-label {
    background: #e1f5fe;
    border-color: #4fc3f7;
    color: #0277bd;
    box-shadow: 0 4px 10px rgba(3, 169, 244, 0.15);
}

/* Checked State - Female */
.iris-segment-option input[value="Female"]:checked+.iris-segment-label {
    background: #fce4ec;
    border-color: #f06292;
    color: #c2185b;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.15);
}

/* INDUSTRY STANDARD: Sticky Footer Modal Layout */
.iris-modal-content {
    display: flex !important;
    flex-direction: column;
    max-height: 85vh;
    /* Prevent full screen height */
}

/* Make the form fill the available space and allow nested scrolling */
#iris-add-dog-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    /* Critical for Firefox/Flex scrolling */
}

/* Scroll ONLY the body */
.iris-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* Fancy Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* Footer always visible at bottom */
.iris-form-actions {
    margin-top: 0;
    text-align: right;
    background: #fff;
    border-top: 1px solid var(--iris-border);
    flex-shrink: 0;
    /* Prevent crushing */
    padding: 24px 32px 32px 32px !important;
    /* Force luxurious padding */
    z-index: 10;
}

/* Sidebar Overlay - Ensure Hidden on Desktop */
.iris-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

@media (max-width: 1024px) {
    .iris-sidebar-overlay.active {
        display: block;
    }
}

/* MOBILE RESPONSIVE MODAL */
@media (max-width: 768px) {
    .iris-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column;
    }

    .iris-modal-body {
        padding: 20px !important;
    }

    .iris-form-actions {
        padding: 20px !important;
        /* Sticky at bottom of screen */
    }

    /* Ensure close button is bigger/easier to hit */
    .iris-modal-close {
        font-size: 28px;
        padding: 10px;
    }

    /* Allow the button to be full width on mobile */
    .iris-form-actions button {
        width: 100% !important;
    }
}

/* ========================================
   MOCKUP MATCH: PREMIUM DOG CARDS
   ======================================== */
.iris-card-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iris-btn-edit {
    background: #e3f2fd;
    color: #2196f3;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.iris-btn-edit:hover {
    background: #2196f3;
    color: white;
}

.iris-btn-remove {
    background: #ffebee;
    color: #f44336;
    border: none;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    /* Circle X */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    line-height: 1 !important;
    box-shadow: none !important;
}

.iris-btn-remove:hover {
    background: #f44336;
    color: white;
}

.iris-section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Center alignment looks cleaner */
    gap: 20px;
    /* Prevent collision */
    margin-bottom: 40px;
    border-bottom: none;
    width: 100%;
}

.iris-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.iris-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.iris-header-subtitle {
    color: #888;
    font-size: 15px;
    margin: 0;
}

/* Green "Add New Dog" Button */
#iris-add-dog-btn {
    background-color: #86b255;
    /* Match mockup green */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    /* Prevent block behavior */
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    width: auto !important;
    /* Force minimal width */
    flex-shrink: 0;
    /* Prevent squishing */
}

#iris-add-dog-btn:hover {
    background-color: #75a045;
}

.iris-dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* New Card Style */
.iris-dog-card-new {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iris-dog-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.iris-card-icon {
    width: 50px;
    height: 50px;
    background-color: #e3f2fd;
    /* Light Blue tint */
    color: #2196f3;
    /* Blue Icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Variation classes for icon colors (Mockup style) */
.iris-dog-card-new:nth-child(2n) .iris-card-icon {
    background-color: #f3e5f5;
    /* Purple tint */
    color: #9c27b0;
}

.iris-dog-card-new:nth-child(3n) .iris-card-icon {
    background-color: #fff3e0;
    /* Orange tint */
    color: #ff9800;
}

.iris-card-body {
    margin-bottom: 30px;
    width: 100%;
}

.iris-card-body h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.iris-card-breed {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iris-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    border-top: 1px solid #fafafa;
    padding-top: 16px;
    margin-top: auto;
}

.iris-card-age {
    display: flex;
    flex-direction: column;
}

.iris-card-age .iris-label {
    font-size: 10px;
    color: #aaa;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.iris-card-age .iris-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    color: #1a1a1a;
}

.iris-link-details {
    color: #4b6bfb;
    /* Bright Blue */
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.iris-link-details:hover {
    gap: 8px;
    color: #2d4cc7;
}

.iris-link-details i {
    font-size: 11px;
}

/* ========================================
   PREMIUM BUTTON OVERRIDES (Final)
   ======================================== */
.iris-card-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Edit Button: Light blue, rounded, no border */
.iris-btn-edit {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    line-height: normal;
}

.iris-btn-edit:hover {
    background: #d0e7ff !important;
    transform: translateY(-1px);
}

/* Remove Button: Light red circle, red icon */
.iris-btn-remove {
    background: #ffebee !important;
    color: #d32f2f !important;
    border: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-size: 14px !important;
}

.iris-btn-remove:hover {
    background: #ffcdd2 !important;
    transform: rotate(90deg);
}


/* ========================================
   CONFIRMATION MODAL (Premium Centered)
   ======================================== */
.iris-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent background scroll */
    background-color: rgba(0, 0, 0, 0.5);
    /* Dimmed background */
    /* Flexbox Centering */
    align-items: center;
    justify-content: center;
}

/* Ensure flex display when active */
.iris-modal[style*="display: block"] {
    display: flex !important;
}

.iris-modal-premium {
    background: #fff;
    width: 90%;
    /* Mobile responsive */
    max-width: 480px !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    margin: auto;
    /* Fallback */
    animation: irisModalPop 0.3s ease-out;
}

@keyframes irisModalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.iris-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.iris-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.iris-modal-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

/* Info Box (Green Theme) */
.iris-info-box {
    background: #e8f5e9;
    /* Light Green */
    color: #2e7d32;
    /* Dark Green Text */
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.iris-info-box i {
    font-size: 18px;
    color: #43a047;
}

/* Details List */
.iris-booking-details-list {
    margin-bottom: 30px;
}

.iris-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    /* border-bottom: 1px solid #f0f0f0; */
    /* Optional divider */
}

.iris-detail-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.iris-detail-label i {
    color: #999;
    width: 20px;
    text-align: center;
}

.iris-detail-value {
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

/* Actions */
.iris-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.iris-modal-actions .iris-btn {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

/* Secondary Button: White with Border */
.iris-btn-secondary {
    background: #fff;
    border: 1px solid #ddd;
    /* Light Gray Border per reference */
    color: #555;
    /* Darker Text */
}

.iris-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Primary Button: SOLID GREEN */
.iris-btn-success,
#iris-btn-proceed-booking {
    background: #7cb342 !important;
    /* Primary Green */
    color: white !important;
    border: 1px solid #7cb342 !important;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

.iris-btn-success:hover,
#iris-btn-proceed-booking:hover {
    background: #689f38 !important;
    border-color: #689f38 !important;
    transform: translateY(-1px);
}

/* Success Modal Specifics */
.iris-success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    /* Light Green Bg */
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iris-success-icon i {
    font-size: 36px;
    color: #43a047;
    /* Darker Green Icon */
}

/* Check that the container is centered */
.iris-success-header {
    text-align: center;
}

.iris-success-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3e50;
    margin-bottom: 8px;
    text-align: center;
    /* Force */
}

.iris-success-header p {
    color: #777;
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: center;
    /* Force */
}

/* Details Box - Clean List */
.iris-booking-summary-details.iris-success-details {
    background: #f9fafb;
    /* Very light gray bg */
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 30px;
}

.iris-btn-success {
    background: #7cb342;
    /* Primary Green */
    color: white;
    border: 1px solid #7cb342;
}

.iris-btn-success:hover {
    background: #689f38;
    border-color: #689f38;
}

/* ========================================
   BOOKING TAB STYLES
   ======================================== */
.iris-step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.iris-booking-step {
    margin-bottom: 40px;
}

.hidden {
    display: none !important;
}

/* Dog Checkbox Cards */
.iris-dog-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.iris-dog-checkbox-card {
    position: relative;
    cursor: pointer;
    min-width: 200px;
}

.iris-dog-checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.iris-dog-checkbox-content {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.2s;
    gap: 12px;
}

.iris-dog-checkbox-card input:checked+.iris-dog-checkbox-content {
    border-color: var(--iris-primary);
    /* Primary Green */
    background: #edfce6;
}

.iris-dog-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 18px;
}

.iris-dog-checkbox-card input:checked+.iris-dog-checkbox-content .iris-dog-icon {
    background: rgba(134, 178, 85, 0.2);
    color: var(--iris-primary);
}

.iris-dog-info {
    display: flex;
    flex-direction: column;
}

.iris-dog-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.iris-dog-breed {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.iris-checkbox-indicator {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    transition: all 0.2s;
}

.iris-dog-checkbox-card input:checked+.iris-dog-checkbox-content .iris-checkbox-indicator {
    background: var(--iris-primary);
    border-color: var(--iris-primary);
}

/* Calendar Styles */
#iris-calendar-container {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    max-width: 600px;
}

.iris-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.iris-calendar-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.iris-calendar-header button {
    background: transparent;
    border: 1px solid #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Circle looks better */
    cursor: pointer;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.iris-calendar-header button:hover {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

.iris-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.iris-cal-day {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    /* Header days */
}

.iris-cal-date {
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #eee;
    font-weight: 600;
    color: #333;
    transition: all 0.1s;
}

.iris-cal-date:hover {
    border-color: var(--iris-primary);
    color: var(--iris-primary);
}

.iris-cal-date.selected {
    background: var(--iris-primary);
    color: white;
    border-color: var(--iris-primary);
}

.iris-cal-date.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e0e0e0;
    color: #888;
}

.iris-cal-date.weekend {
    background: #e8e8e8;
    color: #777;
    opacity: 0.7;
}

.iris-cal-date.empty {
    border: none;
    cursor: default;
}

.iris-calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

.iris-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.iris-legend-item .box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.iris-legend-item .box.selected {
    background: var(--iris-primary);
}

.iris-legend-item .box.unavailable {
    background: #e0e0e0;
}

.iris-legend-item .box.full {
    background: #ff9800;
    /* Orange */
}

/* Day State: Full / Waitlist */
.iris-cal-date.iris-cal-full {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffe0b2;
}

.iris-cal-date.iris-cal-full.selected {
    background: #ef6c00;
    color: white;
    border-color: #ef6c00;
}

/* Day State: Already Booked by User */
.iris-cal-date.booked {
    background: #e3f2fd !important;
    color: #1565c0 !important;
    border: 2px solid #64b5f6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Legend box for Already Booked */
.iris-legend-item .box.booked {
    background: #e3f2fd;
    border: 1px solid #64b5f6;
}



/* Layout Wrapper: 2 Columns on Desktop */
.iris-booking-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .iris-booking-container {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Left col: Dogs */
    #iris-step-select-dogs {
        flex: 1;
        min-width: 300px;
        /* Don't get too squished */
    }

    /* Right col: Calendar */
    #iris-step-calendar {
        flex: 1.5;
        /* Give calendar more width if available */
        margin-top: 0;
    }
}

/* Adjustments for the content inside columns */
.iris-dog-checkbox-grid {
    /* If we are side-by-side, maybe let dogs wrap or stack */
    justify-content: flex-start;
}

.iris-dog-checkbox-card {
    /* Make them fill the available column width nicely */
    flex: 1;
    min-width: 220px;
}

/* ========================================
   SUBSCRIPTION REDESIGN
   ======================================== */
.iris-main-sub-card {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.iris-content-split {
    display: flex;
    flex-wrap: wrap;
}

.iris-split-left {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.iris-split-right {
    flex: 0 0 320px;
    background: #fcfcfc;
    border-left: 1px solid #f0f0f0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .iris-content-split {
        flex-direction: column;
    }

    .iris-split-right {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        flex: auto;
    }
}

/* Plan Title Area */
.iris-plan-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.iris-plan-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 14px;
}

.iris-label-small {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iris-plan-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.iris-plan-name {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
}

.iris-badge-success-soft {
    background: #e6fffa;
    color: #00b894;
    border: 1px solid #b2f5ea;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.iris-plan-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.iris-plan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
}

.iris-link-green {
    color: #4caf50;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

/* Balance Box */
.iris-balance-box {
    text-align: center;
}

.iris-balance-header {
    margin-bottom: 15px;
}

.iris-big-balance {
    font-size: 64px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 20px;
}

.iris-balance-total {
    font-size: 24px;
    color: #ccc;
    font-weight: 400;
}

.iris-btn-glare {
    position: relative;
    overflow: hidden;
}

/* Stats Card */
.iris-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.iris-stat-row:last-child {
    border-bottom: none;
}

.iris-stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.iris-stat-label i {
    color: #ccc;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.iris-stat-value {
    font-weight: 600;
    color: #333;
}

.iris-upsell-banner {
    margin-top: 30px;
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.iris-upsell-banner p {
    color: #666;
    margin-bottom: 15px;
}

.iris-btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.iris-btn-outline:hover {
    border-color: #aaa;
    background: #f9f9f9;
}

.iris-card-header-clean {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.iris-card-header-clean h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* ========================================
   MOBILE OPTIMIZATIONS (Post-Audit)
   ======================================== */
@media (max-width: 480px) {
    .iris-calendar-grid {
        gap: 4px !important;
    }

    .iris-cal-day,
    .iris-cal-date {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }

    .iris-dog-checkbox-grid {
        justify-content: center !important;
    }

    .iris-dog-checkbox-card {
        width: 100% !important;
        min-width: auto !important;
        flex: 1 1 100% !important;
    }

    .iris-modal-premium {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
        margin: auto !important;
    }
}

/* ==========================================================================
   IRIS FRONTEND ISOLATION RESET
   Prevents theme styles from breaking plugin forms
   ========================================================================== */
#iris-frontend-app {
    display: block;
    width: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    line-height: 1.5;
    color: #1f2937;
    text-align: left;
    /* Reset alignment */
}

/* RESET FORM ELEMENTS */
#iris-frontend-app input:not([type="checkbox"]):not([type="radio"]),
#iris-frontend-app select,
#iris-frontend-app textarea {
    background-image: none !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    padding: 12px 16px !important;
    height: auto !important;
    min-height: 48px !important;
    margin-bottom: 12px !important;
    font-size: 16px !important;
    line-height: normal !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#iris-frontend-app input:focus,
#iris-frontend-app select:focus,
#iris-frontend-app textarea:focus {
    border-color: #86b255 !important;
    box-shadow: 0 0 0 3px rgba(134, 178, 85, 0.2) !important;
    outline: none !important;
}

/* RESET BUTTONS */
#iris-frontend-app button,
#iris-frontend-app input[type="submit"],
#iris-frontend-app .button,
#iris-frontend-app .btn,
#iris-frontend-app .elementor-button {
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    margin: 0;
}

/* RESET TYPOGRAPHY */
#iris-frontend-app h1,
#iris-frontend-app h2,
#iris-frontend-app h3 {
    margin-top: 0;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #111 !important;
    line-height: 1.2 !important;
}

#iris-frontend-app p,
#iris-frontend-app li {
    font-family: 'Inter', system-ui, sans-serif !important;
    color: #4b5563 !important;
}

#iris-frontend-app label {
    display: block !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 14px !important;
}

/* ========================================
   BOOKING ACTIONS
   ======================================== */
.iris-booking-actions {
    width: 100%;
    margin-top: 30px;
    display: flex;
}

#iris-btn-confirm-booking {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

/* ========================================
   MOBILE RESPONSIVENESS (Max-Width: 900px)
   ======================================== */
@media (max-width: 900px) {

    /* 0. ENABLE SCROLLING */
    html,
    body {
        overflow-y: auto !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #iris-frontend-app {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 99990 !important;
        /* High Z-Index to overlap theme */
        background: #f0f2f5;
    }

    #iris-frontend-app .iris-main-content {
        height: auto !important;
        overflow: visible !important;
    }

    #iris-frontend-app .iris-saas-dashboard-root {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }

    /* 1. OFF-CANVAS SIDEBAR */
    #iris-frontend-app .iris-sidebar {
        position: fixed !important;
        left: -280px !important;
        /* Fully hidden */
        top: 0;
        bottom: 0;
        z-index: 9999 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 260px !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    }

    #iris-frontend-app .iris-sidebar.active {
        left: 0 !important;
    }

    /* Overlay */
    .iris-sidebar-overlay {
        display: none;
        /* JS toggles block or active */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9990;
        backdrop-filter: blur(2px);
    }

    .iris-sidebar-overlay.active {
        display: block !important;
    }

    /* 2. MAIN CONTENT FULL WIDTH */
    #iris-frontend-app .iris-main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* 3. GRIDS STACKING */
    .iris-dashboard-grid,
    .iris-kpi-grid,
    .iris-quick-actions-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 4. HEADER & TOGGLE */
    .iris-dashboard-header {
        padding: 15px !important;
        gap: 15px;
    }

    #iris-sidebar-toggle {
        display: flex !important;
        /* Ensure visible on mobile */
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        font-size: 20px;
        color: #333;
        cursor: pointer;
    }

    /* 5. TABLE SCROLLING */
    .iris-table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
    }

    .iris-table {
        min-width: 600px;
        /* Force scroll trigger */
    }

    /* 6. CARD ADJUSTMENTS */
    .iris-stat-card,
    .iris-overview-card {
        padding: 20px !important;
        width: 100% !important;
    }

    /* Hero Card Stack */
    .iris-hero-card {
        flex-direction: column !important;
        text-align: center;
    }

    .iris-hero-card>div:last-child {
        position: static !important;
        margin-top: 20px;
    }
}

/* Language switcher - compact pill style to match admin dashboard */
.iris-language-switcher {
    display: inline-block;
}

.iris-language-switcher .form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    border: 1px solid rgba(59,130,246,0.16); /* pale blue border */
    border-radius: 8px;
    padding: 6px 10px;
    height: 34px;
    min-width: 52px;
    font-weight: 700;
    color: var(--iris-text);
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
    background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 8px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* Smaller compact variant */
.iris-language-switcher .form-select-sm {
    padding: 6px 10px;
    font-size: 13px;
    height: 34px;
}

/* Ensure select text centers like the screenshot */
.iris-language-switcher .form-select option {
    font-weight: 700;
}

/* Add focus ring matching brand */
.iris-language-switcher .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.4);
}
