/*
Theme Name: Alphalease Theme
Theme URI: https://www.innolease.nl/
Author: SchultenMedia
Author URI: https://schultenmedia.nl/
Description: A custom, lightweight starter theme for Innolease, designed for flexibility and Elementor compatibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alphalease-theme
Tags: custom-background, custom-logo, post-formats,-featured-images, full-width-template
*/

/* Global Typography */
body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    background-color: var(--background);
    color: var(--foreground);
}

h1, h2, h3, h4, h5, h6 {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.2;
    color: var(--foreground);
}



/* Custom styles for Bootstrap integration */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground, #ffffff);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover, #16a34a); /* Darker green for hover */
    border-color: var(--primary-hover, #16a34a);
    color: var(--primary-foreground, #ffffff);
}

.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.btn-outline-secondary {
    color: var(--secondary);
    border-color: var(--secondary);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active {
    background-color: var(--secondary);
    color: var(--secondary-foreground, #ffffff);
    border-color: var(--secondary);
}

/* Background/Foreground mapping to original Tailwind aesthetic */
.bg-light {
    background-color: var(--background) !important;
}
.text-dark {
    color: var(--foreground) !important;
}
.bg-dark {
    background-color: var(--foreground) !important; /* For the footer background */
}

/* Text colors */
.text-white-70 { color: var(--text-white-70) !important; }
.hover-text-white:hover { color: #fff !important; }
.text-white-50 { color: var(--text-white-50) !important; }

/* Borders */
.border-bottom {
    border-color: var(--border) !important;
}
.border-white-10 { border-color: rgba(255, 255, 255, 0.1) !important; }

/* Custom utility for gap (Bootstrap's g-* classes are for grid/flex children) */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* Font sizes */
.text-sm { font-size: 0.875rem !important; } /* Tailwind's text-sm */
.small { font-size: 0.875em !important; } /* Bootstrap's .small, ensure consistency */

/* Font weights */
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

/* Header/Navbar specific styles */
header,
header.sticky-top {
    background-color: var(--header-background, #ffffff);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050;
}

.bg-background-95 {
    background-color: hsl(var(--background-hsl) / 0.95) !important;
}

/* Custom logo max height */
.custom-logo,
.custom-logo-link img,
header .logo-img,
.navbar-brand img {
    max-height: var(--logo-max-height, 40px);
    width: auto;
    height: auto;
}

.border-border {
    border-color: var(--border) !important;
}

/* Logo icon styling */
.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-foreground {
    color: var(--foreground) !important;
}

.text-primary-foreground {
    color: var(--primary-foreground) !important;
}

/* Text gradient - secondary to primary */
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--secondary-hsl)), hsl(var(--primary-hsl)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tailwind-style text sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Tailwind-style font weights */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Tailwind-style text colors */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted { color: var(--muted-foreground) !important; }

/* Tailwind-style leading (line-height) */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Tailwind-style tracking (letter-spacing) */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Fix for WordPress admin bar - offset sticky header */
.admin-bar header.sticky-top {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar header.sticky-top {
        top: 46px;
    }
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
    display: flex; /* Ensure flex behavior */
    align-items: center; /* Vertical alignment */
}
.navbar-brand .custom-logo-link img {
    max-height: 2rem; /* h-8 equivalent from original Tailwind */
    width: auto;
}

.navbar-brand .p-2 {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem; /* rounded-lg equivalent */
}

.navbar-brand .h5 {
    color: var(--foreground) !important;
    margin-bottom: 0; /* Remove default h5 margin */
}

/* Navigation links - subtle muted style like original */
.navbar-nav .nav-link,
header .nav-link,
header nav a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.15s ease-in-out;
    padding: 0.25rem 0;
    text-decoration: none;
}

.navbar-nav .nav-link:hover,
header .nav-link:hover,
header nav a:not(.btn):hover {
    color: var(--foreground);
}

.navbar-nav .nav-link.active,
header .nav-link.active,
header nav a:not(.btn).active,
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current_page_item > .nav-link {
    color: var(--secondary);
}

.navbar-nav .nav-item {
    margin-left: 0;
    margin-right: 0;
}

/* Custom link underline effect */
a.link-underline {
    text-decoration: none; /* Hide default underline */
    position: relative;
    padding-bottom: 2px; /* Space for the custom underline */
}
a.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease-out;
}
.navbar-nav .nav-link:hover.link-underline::after,
.navbar-nav .nav-link.active.link-underline::after {
    width: 100%;
}

/* Buttons in Header (converted from Tailwind) */
.header-buttons .btn {
    font-size: 0.875rem; /* text-sm equivalent */
    font-weight: 600; /* font-semibold equivalent */
    height: 2.25rem; /* h-9 equivalent */
    border-radius: 0.375rem; /* rounded-md equivalent */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* shadow-medium equivalent */
    transition: all 0.2s ease-in-out;
}
.header-buttons .btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* shadow-large equivalent */
    transform: scale(1.02);
}

/* Lucide Icons (adjust size if needed, Bootstrap SVGs are 1em) */
.lucide { 
    width: 1.25rem; /* w-5 equivalent */
    height: 1.25rem; /* h-5 equivalent */
    vertical-align: -0.125em; /* Align with text */
}

/* Footer specific styles */
.site-footer {
    background-color: var(--foreground);
    color: var(--background);
}

.site-footer .e-con-inner {
    display: block !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .site-footer .e-con-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .site-footer .e-con-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.site-footer h3 {
    color: var(--background) !important;
    font-size: 1rem;
}

/* Footer text colors matching Tailwind */
.text-background { color: var(--background) !important; }
.text-background-70 { color: hsl(var(--background-hsl) / 0.7) !important; }
.text-background-50 { color: hsl(var(--background-hsl) / 0.5) !important; }
.border-background-10 { border-color: hsl(var(--background-hsl) / 0.1) !important; }

/* Footer links */
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a,
.footer-link {
    color: hsl(var(--background-hsl) / 0.7);
    transition: color 0.15s ease;
}
.footer-links a:hover,
.footer-link:hover {
    color: var(--background) !important;
}

/* Footer social links */
.footer-social-link {
    transition: color 0.15s ease;
}
.footer-social-link:hover {
    color: var(--background) !important;
}

/* USPs section */
.usp-section {
    background-color: var(--muted);
}
.usp-item {
    color: var(--muted-foreground);
}
.usp-item svg {
    color: var(--primary);
}

/* Form elements consistency */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
    height: 3rem; /* 48px - consistent height */
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: #fff;
}

/* Input with prefix (euro sign, etc.) */
.input-with-prefix {
    position: relative;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.input-with-prefix input,
.input-with-prefix .form-control {
    padding-left: 2rem;
}

/* Money input with euro prefix */
.money-input {
    position: relative;
    display: flex;
    align-items: center;
}

.money-input::before {
    content: '€';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--muted-foreground);
    pointer-events: none;
    z-index: 1;
}

.money-input input,
.money-input .form-control {
    width: 100%;
    padding-left: 2.5rem !important;
    height: 3rem;
}

/* Kenteken (license plate) input styling - matching original design */
.kenteken-input-wrapper {
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid hsl(var(--primary-hsl) / 0.2);
    background: hsl(var(--primary-hsl) / 0.1);
    height: 3rem;
}

.kenteken-input-wrapper .nl-badge,
.kenteken-input-wrapper .kenteken-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-right: 2px solid hsl(var(--secondary-hsl) / 0.5);
    flex-shrink: 0;
}

.kenteken-input-wrapper input,
.kenteken-input-wrapper .kenteken-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    height: 100%;
}

.kenteken-input-wrapper input:focus,
.kenteken-input-wrapper .kenteken-input:focus {
    outline: none;
    box-shadow: none;
}

.kenteken-input-wrapper input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: var(--muted-foreground);
}

.kenteken-input-wrapper .btn-search,
.kenteken-input-wrapper button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.kenteken-input-wrapper .btn-search:hover,
.kenteken-input-wrapper button:hover {
    background: var(--primary-hover);
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea,
textarea.form-control {
    height: auto;
    min-height: 6rem;
}

/* Ensure select arrows are visible */
.form-select,
select,
.filter-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 9px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Filter select in calculator plugin */
.filter-select {
    height: 3rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: #fff;
    color: var(--foreground);
    width: 100%;
}

.filter-select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Top results grid - 3 columns on desktop */
.top-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .top-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .top-results-grid {
        grid-template-columns: 1fr;
    }
}

/* Elementor full width support */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px;
}

.elementor-section.elementor-section-full_width,
.elementor-section.elementor-section-stretched,
.e-con.e-con-full {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Elementor container inner - centered content with max-width */
.e-con-inner {
    width: 100%;
    max-width: var(--container-max-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .e-con-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .e-con-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.elementor-container {
    width: 100%;
    max-width: 100%;
}

/* Remove main container constraints for Elementor pages */
.elementor-page main,
.elementor-page .entry-content,
.elementor-page article {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.elementor-page .container {
    max-width: 100%;
    padding: 0;
}

/* Ensure stretched sections work */
.elementor-section-stretched {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

/* Global transitions */
a,
.btn,
.nav-link,
.form-control,
.form-select,
input,
select {
    transition: all 0.2s ease-in-out;
}

/* Link styles */
a {
    color: var(--secondary);
    text-decoration: none;
}
a:hover {
    color: var(--primary);
}

/* Improved button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-lg {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Primary button */
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground, #ffffff);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-hover);
    color: var(--primary-foreground, #ffffff);
}

/* Secondary button solid variant */
.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--secondary-foreground, #ffffff);
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: var(--secondary-foreground, #ffffff);
}

/* Outline buttons */
.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}
.btn-outline-secondary:hover {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

/* Elementor button styles - override defaults */
.elementor .elementor-button,
.elementor .elementor-widget-button .elementor-button,
.elementor .elementor-button-wrapper .elementor-button,
.elementor-button-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    min-height: 3rem !important;
    padding: 0 1.5rem !important;
    border: none;
    border-radius: 0.5rem !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 3rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    background-color: var(--primary);
    color: var(--primary-foreground, #ffffff);
}

/* Button sizes */
.elementor .elementor-button.elementor-size-xs {
    min-height: 2.25rem !important;
    padding: 0 1rem !important;
    font-size: 0.8125rem !important;
    line-height: 2.25rem !important;
}

.elementor .elementor-button.elementor-size-sm {
    min-height: 2.5rem !important;
    padding: 0 1.25rem !important;
    font-size: 0.875rem !important;
    line-height: 2.5rem !important;
}

.elementor .elementor-button.elementor-size-md {
    min-height: 3rem !important;
    padding: 0 1.5rem !important;
    font-size: 1rem !important;
    line-height: 3rem !important;
}

.elementor .elementor-button.elementor-size-lg {
    min-height: 3.5rem !important;
    padding: 0 2rem !important;
    font-size: 1.125rem !important;
    line-height: 3.5rem !important;
}

.elementor .elementor-button.elementor-size-xl {
    min-height: 4rem !important;
    padding: 0 2.5rem !important;
    font-size: 1.25rem !important;
    line-height: 4rem !important;
}

.elementor .elementor-button:hover,
.elementor .elementor-button:focus,
.elementor .elementor-widget-button .elementor-button:hover,
.elementor .elementor-button-wrapper .elementor-button:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.02) !important;
}

.elementor .elementor-button-content-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

/* Elementor secondary button (add class e-btn-secondary to widget) */
.elementor .e-btn-secondary .elementor-button,
.elementor .elementor-button.e-btn-secondary,
.elementor .elementor-widget-button.e-btn-secondary .elementor-button {
    background-color: var(--secondary) !important;
    color: var(--secondary-foreground, #ffffff) !important;
}

.elementor .e-btn-secondary .elementor-button:hover,
.elementor .elementor-button.e-btn-secondary:hover,
.elementor .elementor-widget-button.e-btn-secondary .elementor-button:hover {
    background-color: #1d4ed8 !important;
}

/* Elementor outline button (add class e-btn-outline) */
.elementor .e-btn-outline .elementor-button,
.elementor .elementor-button.e-btn-outline,
.elementor .elementor-widget-button.e-btn-outline .elementor-button {
    background-color: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.elementor .e-btn-outline .elementor-button:hover,
.elementor .elementor-button.e-btn-outline:hover,
.elementor .elementor-widget-button.e-btn-outline .elementor-button:hover {
    background-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

/* Elementor outline secondary button */
.elementor .e-btn-outline-secondary .elementor-button,
.elementor .elementor-widget-button.e-btn-outline-secondary .elementor-button {
    background-color: transparent !important;
    border: 2px solid var(--secondary) !important;
    color: var(--secondary) !important;
    box-shadow: none !important;
}

.elementor .e-btn-outline-secondary .elementor-button:hover,
.elementor .elementor-widget-button.e-btn-outline-secondary .elementor-button:hover {
    background-color: var(--secondary) !important;
    color: var(--secondary-foreground) !important;
}

/* Card styles */
.card {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1e40af;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
}

/* Widget area styles */
.widget {
    padding: 1.25rem;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.widget-title {
    color: var(--foreground);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--foreground);
}

.widget ul li a:hover {
    color: var(--secondary);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--muted);
    font-weight: 600;
    color: var(--foreground);
}

tbody tr:hover {
    background-color: var(--muted);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: var(--muted);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background-color: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-close:hover {
    background-color: var(--muted);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-menu-nav li {
    margin-bottom: 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.mobile-menu-nav a:hover {
    color: var(--secondary);
}

.mobile-menu-nav .current-menu-item a,
.mobile-menu-nav .current_page_item a {
    color: var(--secondary);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--muted);
}

/* Admin bar offset for mobile menu */
.admin-bar .mobile-menu-overlay {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu-overlay {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-right: 0;
    }

    .header-buttons .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}
