/* base button style — clean & scalable */
.wpcrud-button {
    /* layout & sizing */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    
    /* interactive & cursor */
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    
    /* borders & rounding */
    border: none;
    border-radius: 60px;   /* super pill shape, modern & friendly */
    
    /* background & effects base */
    background: linear-gradient(105deg, #00049B, #ff3a2f);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    
    /* subtle shadow & transition */
    box-shadow: 0 12px 22px -8px rgba(255, 58, 47, 0.45), 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    
    /* extra eye-candy: relative for pseudo elements */
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* text decoration reset */
    text-decoration: none;
    letter-spacing: 0.3px;
}

/* high-energy gradient variant (different energy) — but also punchy, we can keep one hero version 
   but also define additional state variations for extra flair, but main button remains the core "punchy" */

/* ---------- GLOW & RIPPLE effect (premium punch) ---------- */
.wpcrud-button::before {
    content: "";
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 0px;
    height: 0px;
    background: radial-gradient(circle, rgba(255,255,245,0.65) 0%, rgba(255,255,255,0) 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.45s ease-out, height 0.45s ease-out;
    pointer-events: none;
    z-index: 0;
}

/* on click ripple simulation (js not required, but we do interactive pseudo on active) */
.wpcrud-button:active::before {
    width: 400px;
    height: 400px;
    transition: width 0.3s ease-out, height 0.3s ease-out;
}

/* shimmer overlay animation – makes button ultra eye-catching (continuous subtle shine) */
.wpcrud-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    transition: left 0.65s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* shimmer movement on hover: adds dynamic liveliness */
.wpcrud-button:hover::after {
    left: 125%;
}

/* hover state: lift, intensify glow, scale slightly */
.wpcrud-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 32px -10px rgba(255, 58, 47, 0.6), 0 6px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(115deg, #ff7a48, #00049B);
    filter: brightness(1.02);
}

/* active (click) feedback: punchy press */
.wpcrud-button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 8px 18px -5px rgba(255, 58, 47, 0.65);
    transition: transform 0.08s linear;
}

/* focus state for accessibility (keyboard nav) */
.wpcrud-button:focus-visible {
    outline: 3px solid #ffd966;
    outline-offset: 3px;
    border-radius: 60px;
}

/* optional icon inside button - if we use i or svg, we keep alignment */
.wpcrud-button i, 
.wpcrud-button svg {
    transition: transform 0.2s ease;
    pointer-events: none;
}

.wpcrud-button:hover i,
.wpcrud-button:hover svg {
    transform: translateX(4px);
}

/* ----- extra PULSE effect (eye-catching, adds energy without being annoying) ----- */
/* we add a subtle pulse animation on the button's box-shadow to catch attention */
.wpcrud-button--pulse {
    animation: wpcrud-pulse-glow 2.2s infinite ease-in-out;
}

@keyframes wpcrud-pulse-glow {
    0% {
        box-shadow: 0 12px 22px -8px rgba(255, 58, 47, 0.45), 0 4px 8px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 15px 32px -6px rgba(255, 78, 55, 0.7), 0 0 0 4px rgba(255, 90, 55, 0.2);
    }
    100% {
        box-shadow: 0 12px 22px -8px rgba(255, 58, 47, 0.45), 0 4px 8px rgba(0, 0, 0, 0.05);
    }
}

/* we also add a secondary variant for dark backgrounds or different usage, but keep primary solid */
/* but to show flexibility, we create .wpcrud-button--invert (alternative punchy) */
.wpcrud-button--invert {
    background: linear-gradient(125deg, #1e2b3c, #0f212e);
    box-shadow: 0 12px 24px -8px rgba(0, 20, 30, 0.6);
    color: #f0fcff;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.wpcrud-button--invert:hover {
    background: linear-gradient(115deg, #2c4155, #122b3a);
    box-shadow: 0 22px 32px -12px rgba(0, 45, 60, 0.8);
}

.wpcrud-button--invert::before {
    background: radial-gradient(circle, rgba(100,200,255,0.55) 0%, rgba(255,255,255,0) 80%);
}

/* Another version: neon / cyber punch */
.wpcrud-button--neon {
    background: linear-gradient(105deg, #00c6a7, #1e3c72);
    box-shadow: 0 0 12px #00ffc3, 0 10px 22px -5px rgba(0,198,167,0.5);
}

.wpcrud-button--neon:hover {
    box-shadow: 0 0 18px #7effe0, 0 15px 28px -6px #00c6a7;
    background: linear-gradient(115deg, #1ae6c2, #1f4b8a);
}

/* size variations (optional, production ready but consistent) */
.wpcrud-button--sm {
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    gap: 0.45rem;
}

.wpcrud-button--lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.35rem;
    gap: 0.9rem;
}

/* full width version for mobile/container */
.wpcrud-button--block {
    display: flex;
    width: 100%;
}

/* disabled state – production ready */
.wpcrud-button:disabled,
.wpcrud-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.1);
    transform: none;
    pointer-events: none;
    box-shadow: 0 6px 12px -5px rgba(0,0,0,0.2);
}

/* Additional styling to make sure text is crisp */
.wpcrud-button span, 
.wpcrud-button .wpcrud-button-text {
    position: relative;
    z-index: 2;
}

/* optional loader / spinner for async state - just in case you need it later (not active by default, but nice) */
.wpcrud-button .wpcrud-spinner {
    display: none;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: wpcrud-spin 0.7s linear infinite;
}

@keyframes wpcrud-spin {
    to { transform: rotate(360deg); }
}

.wpcrud-button--loading .wpcrud-button-text {
    display: none;
}

.wpcrud-button--loading .wpcrud-spinner {
    display: inline-block;
}

/* demo helpers for extra style - not necessary for core, but for this preview */
hr {
    margin: 2rem 0;
    border: none;
    height: 2px;
    background: rgba(0,0,0,0.1);
    width: 80%;
}

.badge {
    font-size: 0.7rem;
    background: #ffffffc9;
    padding: 0.2rem 0.7rem;
    border-radius: 60px;
    color: #e6452c;
    font-weight: 600;
}

.wpcrud-button span{
    color: #FFF;
}

.wpcrud-button i.fas,
.wpcrud-button i.fa-solid,
.wpcrud-button i.fa-regular,
.wpcrud-button i.fa-light {
    color: #FFF !important;
    font-size: 15px;
}


.wpcrud-info-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #e7f3ff;
    border-left: 5px solid #2196f3;
    color: #0c5460;
    padding: 15px 18px;
    border-radius: 6px;
    max-width: 600px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.wpcrud-info-box .icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.wpcrud-info-box .content {
    font-size: 14px;
    line-height: 1.5;
}

.wpcrud-info-box .title {
    font-weight: 600;
    margin-bottom: 4px;
}

.wpcrud-button{
    padding: 7px 20px !important;
    color: #FFF !important;
}

/* ------------------------------------------------------------
       wpcrud_ / wpcrud-  prefix system – dark theme, mobile first,
       production ready dashboard with forms.
       ------------------------------------------------------------ */

.wpcrud-dashboard-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wpcrud-dashboard-wrapper,
.wpcrud-dashboard-wrapper  p,
.wpcrud-dashboard-wrapper  span, 
.wpcrud-dashboard-wrapper a, 
.wpcrud-dashboard-wrapper h1,
.wpcrud-dashboard-wrapper  h2,
.wpcrud-dashboard-wrapper  h3,
.wpcrud-dashboard-wrapper  h4,
.wpcrud-dashboard-wrapper  h5,
.wpcrud-dashboard-wrapper  h6{
    color: #999;
}

/* global vars – all prefixed with wpcrud- */
:root {
    --wpcrud-bg-app: #0a0c10;
    --wpcrud-bg-surface: #151821;
    --wpcrud-bg-elevated: #1e2530;
    --wpcrud-bg-sidebar: #0f1217;
    --wpcrud-bg-input: #1b222c;
    --wpcrud-border-subtle: #2b3442;
    --wpcrud-border-focus: #3b4b5e;
    --wpcrud-text-primary: #edf2f7;
    --wpcrud-text-secondary: #a0b3cc;
    --wpcrud-text-muted: #6f7e95;
    --wpcrud-accent: #3b82f6;
    --wpcrud-accent-glow: #2563eb;
    --wpcrud-danger: #f43f5e;
    --wpcrud-success: #22c55e;
    --wpcrud-warning: #eab308;
    --wpcrud-radius-md: 0.75rem;
    --wpcrud-radius-sm: 0.5rem;
    --wpcrud-radius-xs: 0.375rem;
    --wpcrud-gap: 1.25rem;
    --wpcrud-transition: 0.2s ease;
}

/*.header-top-bar,
.main-header{
    display: none !important;
}
*/
.wpcrud-dashboard-wrapper {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--wpcrud-bg-app);
    color: var(--wpcrud-text-primary);
    line-height: 1.5;
    height: 100vh;
    display: flex;
}

/* ---------- SIDEBAR (wpcrud-sidebar) ---------- */
.wpcrud-sidebar {
    width: 280px;
    background: var(--wpcrud-bg-sidebar);
    border-right: 1px solid var(--wpcrud-border-subtle);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden !important;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--wpcrud-border-subtle) var(--wpcrud-bg-sidebar);
}

.wpcrud-sidebar::-webkit-scrollbar {
    width: 5px;
}
.wpcrud-sidebar::-webkit-scrollbar-track {
    background: var(--wpcrud-bg-sidebar);
}
.wpcrud-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--wpcrud-border-subtle);
    border-radius: 20px;
}

.wpcrud-sidebar-header {
    padding: 1.8rem 1.5rem 1.2rem;
    border-bottom: 1px solid var(--wpcrud-border-subtle);
}

.wpcrud-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: white;
}

.wpcrud-logo i {
    color: var(--wpcrud-accent);
    font-size: 1.9rem;
}

.wpcrud-sidebar-nav {
    flex: 1;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wpcrud-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--wpcrud-radius-sm);
    color: #FFF;
    font-weight: 500;
    transition: all var(--wpcrud-transition);
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.wpcrud-nav-item i {
    width: 1.5rem;
    font-size: 1.2rem;
    color: var(--wpcrud-text-muted);
    transition: color var(--wpcrud-transition);
}

.wpcrud-nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--wpcrud-text-primary);
}

.wpcrud-nav-item:hover i {
    color: var(--wpcrud-accent);
}

.wpcrud-nav-item.wpcrud-active {
    background: rgba(59, 130, 246, 0.16);
    color: white;
    border-left: 3px solid var(--wpcrud-accent);
}

.wpcrud-nav-item.wpcrud-active i {
    color: var(--wpcrud-accent);
}

.wpcrud-sidebar-footer {
    padding: 1.5rem 1.2rem 2rem;
    border-top: 1px solid var(--wpcrud-border-subtle);
    font-size: 0.9rem;
}

.wpcrud-user-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--wpcrud-text-secondary);
}

.wpcrud-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, #202a36, #151e28);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wpcrud-border-subtle);
}

/* ---------- MAIN CONTENT (wpcrud-main) ---------- */
.wpcrud-main {
    flex: 1;
    min-width: 0; /* prevent overflow */
    background: var(--wpcrud-bg-app);
    padding: 2rem 2rem 2.5rem;
    overflow-y: auto;
    height: 100vh;
}

/* top bar (mobile menu toggle + heading) */
.wpcrud-top-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wpcrud-mobile-menu-btn {
    display: none;
    background: var(--wpcrud-bg-elevated);
    border: 1px solid var(--wpcrud-border-subtle);
    border-radius: var(--wpcrud-radius-sm);
    color: var(--wpcrud-text-primary);
    font-size: 1.5rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.wpcrud-page-title {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #bdd3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- CARDS / SECTIONS (dark forms inside) ---------- */
.wpcrud-card {
    background: var(--wpcrud-bg-surface);
    border: 1px solid var(--wpcrud-border-subtle);
    border-radius: var(--wpcrud-radius-md);
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

.wpcrud-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    gap: 15px;
}

.wpcrud-card-header h2,
.wpcrud-card-header h3,
.wpcrud-card-header h4 {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--wpcrud-text-primary);
}

.wpcrud-card-header i {
    color: var(--wpcrud-accent);
    font-size: 1.6rem;
}

/* ---------- FORMS (full dark theme) ---------- */
.wpcrud-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.wpcrud-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wpcrud-field label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--wpcrud-text-secondary);
    letter-spacing: 0.02em;
}

.wpcrud-field input,
.wpcrud-field select,
.wpcrud-field textarea {
    background: var(--wpcrud-bg-input);
    border: 1.5px solid var(--wpcrud-border-subtle);
    border-radius: var(--wpcrud-radius-sm);
    padding: 0.8rem 1rem;
    color: var(--wpcrud-text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.15s, box-shadow 0.15s;
}

.wpcrud-field input:focus,
.wpcrud-field select:focus,
.wpcrud-field textarea:focus {
    outline: none;
    border-color: var(--wpcrud-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.wpcrud-field input::placeholder,
.wpcrud-field textarea::placeholder {
    color: var(--wpcrud-text-muted);
    opacity: 0.7;
}

/* radio / checkbox group dark styling */
.wpcrud-radio-group,
.wpcrud-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--wpcrud-bg-input);
    border: 1.5px solid var(--wpcrud-border-subtle);
    border-radius: var(--wpcrud-radius-sm);
    padding: 0.8rem 1.2rem;
}

.wpcrud-radio-option,
.wpcrud-checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wpcrud-text-primary);
}

.wpcrud-radio-option input[type="radio"],
.wpcrud-checkbox-option input[type="checkbox"] {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--wpcrud-bg-elevated);
    border: 2px solid var(--wpcrud-border-subtle);
    border-radius: 50%;
    margin: 0;
    transition: 0.1s;
    cursor: pointer;
}

.wpcrud-checkbox-option input[type="checkbox"] {
    border-radius: 4px;
}

.wpcrud-radio-option input[type="radio"]:checked {
    border-color: var(--wpcrud-accent);
    background: var(--wpcrud-accent);
    box-shadow: inset 0 0 0 3px var(--wpcrud-bg-input);
}

.wpcrud-checkbox-option input[type="checkbox"]:checked {
    background: var(--wpcrud-accent);
    border-color: var(--wpcrud-accent);
}

.wpcrud-btn {
    background: var(--wpcrud-accent);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: var(--wpcrud-radius-sm);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wpcrud-btn:hover {
    background: var(--wpcrud-accent-glow);
}

.wpcrud-btn.wpcrud-btn-outline {
    background: transparent;
    border: 1.5px solid var(--wpcrud-border-subtle);
    color: var(--wpcrud-text-primary);
}

.wpcrud-btn.wpcrud-btn-outline:hover {
    border-color: var(--wpcrud-accent);
    background: rgba(59, 130, 246, 0.05);
}

/* small badge / meta */
.wpcrud-badge {
    background: var(--wpcrud-bg-elevated);
    border-radius: 50px;
    padding: 0.25rem 1rem;
    color: var(--wpcrud-text-secondary);
    font-size: 0.85rem;
    border: 1px solid var(--wpcrud-border-subtle);
}

.wpcrud-sub-menu a{
    padding: 0.5rem 1.2rem;
    color: var(--wpcrud-text-secondary);
}


.wpcrud-link-section .wpcrud-nav-item {
    display: inline;
    width: auto;
    padding: 0;
    color: inherit;
    font-weight: normal;
}

/* reset icon instead of hiding */
.wpcrud-link-section .wpcrud-nav-item i {
    width: auto;
    font-size: inherit;
    color: inherit;
    margin-right: 0.3rem;
}

.wpcrud-card-header .wpcrud-nav-item{
    color: #3B82F6;
    padding: 5px 0;
    display: inline-block;
}

/* ---------- MOBILE FRIENDLY ( < 900px ) ---------- */
@media screen and (max-width: 900px) {
    .wpcrud-sidebar {
        position: fixed;
        z-index: 100;
        transform: translateX(-100%);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
        height: 100vh;
        width: 260px;
    }

    .wpcrud-sidebar.wpcrud-open {
        transform: translateX(0);
    }

    .wpcrud-mobile-menu-btn {
        display: inline-block;
    }

    .wpcrud-main {
        padding: 1.5rem 1.2rem;
        width: 100%;
    }

    .wpcrud-form-grid {
        grid-template-columns: 1fr; /* stack on mobile */
    }
}

/* small devices extra */
@media screen and (max-width: 480px) {
    .wpcrud-card {
        padding: 1.2rem;
    }
    .wpcrud-radio-group {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* interactive dummy section – cards with forms (simulates each link content) */
.wpcrud-link-section {
    scroll-margin-top: 1rem;
}

/* simple spacing */
.wpcrud-mt-4 {
    margin-top: 2rem;
}
.wpcrud-flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}


/*auoto copmlete*/

.wpcrud-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpcrud-input-wrap {
    position: relative;
}

/* Input styling */
.wpcrud-input-wrap input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #fff;
    outline: none;
}

.wpcrud-input-wrap input:focus {
    border-color: #4c9aff;
}

/* Autocomplete container */
.wpcrud-autocomplete {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    
    background: #1e1e1e;
    border: 1px solid #2e2e2e;
    border-radius: 8px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 999;

    display: none; /* toggle this with JS */
}

/* Each item */
.wpcrud-autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    color: #ddd;
    font-size: 14px;
}

/* Hover and active state */
.wpcrud-autocomplete-item:hover,
.wpcrud-autocomplete-item.wpcrud-active {
    background: #2a2a2a;
    color: #fff;
}

/* Scrollbar styling */
.wpcrud-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.wpcrud-autocomplete::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.wpcrud-autocomplete-close-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.wpcrud-autocomplete-close{
    opacity: 0.8;
    color: #e1e1e1;
    font-size: 18px;
    padding: 5px;
    user-select: none;
    cursor: pointer;
}

.site-footer{
   #display: none !important;
}

.wpcrud-info-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #e7f3ff;
    border-left: 5px solid #2196f3;
    color: #0c5460;
    padding: 15px 18px;
    border-radius: 6px;
    max-width: 600px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.wpcrud-info-box .icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

.wpcrud-info-box .content {
    font-size: 14px;
    line-height: 1.5;
}

.wpcrud-info-box .title {
    font-weight: 600;
    margin-bottom: 4px;
}


/*flex boxes*/
.wpcrud-flex-space-between{
    display: flex;
    justify-content: space-between;
}

.wpcrud_flex_row{
    display: flex;
    flex-direction: row;
}

.wpcrud_flex_column{
    display: flex;
    flex-direction: column;
}


.wpcrud-media-upload {
    cursor: pointer !important;
}


    .wpcrud-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.wpcrud-field {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.wpcrud-field label {
    flex: 0 0 87px;
    font-size: 0.9rem;
    color: var(--wpcrud-text-secondary);
}

.wpcrud-field input,
.wpcrud-field select,
.wpcrud-field textarea {
    flex: 1;
    width: 100%;
}

.wpcrud-inclusive-form-submit {
    grid-column: 1 / -1;
}

/* inclusive view more details table */
.wpcrud-detail-view {
    margin: 15px 0;
}

.wpcrud-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.wpcrud-detail-table tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.wpcrud-detail-table th,
.wpcrud-detail-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

.wpcrud-detail-table th {
    width: 220px;
    font-weight: 600;
    color: #444;
    background: #f8f8f8;
    border-right: 1px solid #eee;
    white-space: nowrap;
}

.wpcrud-detail-table td {
    color: #222;
    line-height: 1.6;
    word-break: break-word;
}

.wpcrud-detail-table tr:hover {
    background: #fafafa;
}

.wpcrud-detail-table td img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.wpcrud-detail-table td img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/*dark theme for the inclusive view more details*/
.wpcrud-detail-view {
    margin: 15px 0;
}

.wpcrud-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #1f1f1f;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    overflow: hidden;
}

.wpcrud-detail-table tr:not(:last-child) {
    border-bottom: 1px solid #333;
}

.wpcrud-detail-table th,
.wpcrud-detail-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
}

.wpcrud-detail-table th {
    width: 220px;
    font-weight: 600;
    color: #f5f5f5;
    background: #2a2a2a;
    border-right: 1px solid #3b3b3b;
    white-space: nowrap;
}

.wpcrud-detail-table td {
    color: #d8d8d8;
    line-height: 1.6;
    word-break: break-word;
}

.wpcrud-detail-table tr:hover {
    background: #292929;
}

.wpcrud-detail-table td img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #444;
}

.wpcrud-detail-table th {
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
}

@media screen and (max-width: 900px) {
    .wpcrud-field {
        flex-direction: column;
        align-items: stretch;
    }

    .wpcrud-field label {
        flex: unset;
        width: 100%;
    }
}

#wpcrud-edit-bs,
#wpcrud-details-bs,
#wpcrud-edit-bs h2,
#wpcrud-details-bs h2{
    color: #FFF;
}

#wpcrud-edit-bs h2,
#wpcrud-details-bs h2{
    margin-bottom: 20px;
}

#wpcrud-edit-bs .wpcd-bs-close,
#wpcrud-details-bs .wpcd-bs-close{
    background: none !important;
}



.wpcrud-form-description {
    padding: 12px 14px;
    background: #000;
    border-left: 4px solid #4ea3ff;
    border-radius: 0px;
    color: #d8d8d8;
    font-size: 13px;
    line-height: 1.6;
    box-sizing: border-box;
    display: block;
}

.wpcrud-form-description strong {
    color: #ffffff;
    font-weight: 600;
}

.wpcrud-form-description a {
    color: #7fc8ff;
    text-decoration: none;
}

.wpcrud-form-description a:hover {
    text-decoration: underline;
}


.wpcrud-risk-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 16px 18px !important;
    margin: 16px 0 !important;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-left: 5px solid var(--wpcrud-danger);
    border-radius: var(--wpcrud-radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.wpcrud-risk-banner-icon {
    flex: 0 0 auto;
    color: var(--wpcrud-danger);
    font-size: 20px;
    line-height: 1;
    padding-top: 2px;
}

.wpcrud-risk-banner-content {
    min-width: 0;
}

.wpcrud-risk-banner-title {
    margin-bottom: 4px;
    color: var(--wpcrud-text-primary);
    font-size: 15px;
    font-weight: 700;
}

.wpcrud-risk-banner-message {
    color: var(--wpcrud-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}



/* ==========================================================
   WPCRUD DISPLAY TABS
   ========================================================== */
/* Main tabs container - add outer padding */
.wpcrud-display-tabs {
    padding: 20px;
    background: #151821;
    border-radius: 10px;
    border: 1px solid #333;
    margin: 20px 0;
}

/* Tabs header container - add proper padding */
.wpcrud-display-tabs-header {
    display: flex;
    gap: 4px;
    padding: 16px 16px 0 16px !important;
    background: #151821;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #333;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

/* Custom scrollbar for webkit browsers */
.wpcrud-display-tabs-header::-webkit-scrollbar {
    height: 4px;
}

.wpcrud-display-tabs-header::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.wpcrud-display-tabs-header::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.wpcrud-display-tabs-header::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Individual tab buttons - proper padding */
.wpcrud-display-tab-button {
    padding: 14px 28px !important;
    background: transparent !important;
    border: none;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: #aaa;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    margin-bottom: -2px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.wpcrud-display-tab-button:hover {
    background: #2a2a2a;
    color: #ddd;
}

.wpcrud-display-tab-button.active {
    background: #222b38;
    color: #4a9eff;
    border-bottom: 3px solid #4a9eff;
}

.wpcrud-display-tab-button.active:hover {
    background: #222b38;
    color: #4a9eff;
}

/* Tabs body/content container - proper padding */
.wpcrud-display-tabs-body {
    background: #151821;
    border-radius: 0 0 8px 8px;
    padding: 24px 20px 20px 20px;
    border: 1px solid #333;
    border-top: none;
}

/* Individual tab content - ensure proper spacing */
.wpcrud-display-tab-content {
    display: none;
    padding: 15px !important;
}

.wpcrud-display-tab-content.active {
    display: block;
}

/* Optional: Add smooth transition for tab switching */
.wpcrud-display-tab-content {
    animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpcrud-display-tabs {
        padding: 12px;
    }
    
    .wpcrud-display-tabs-header {
        padding: 12px 12px 0 12px;
        gap: 2px;
    }
    
    .wpcrud-display-tab-button {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .wpcrud-display-tabs-body {
        padding: 16px 12px 12px 12px;
    }
}

.wpcrud-action-buttons{
    display: flex;
    gap: 5px;
}