/* -------------------------------------------------------------
 * SEAC Ditte Accreditate - Stylesheet
 * Premium CSS with Light/Dark Mode matching Corporate Identity
 * ------------------------------------------------------------- */

:root {
    /* Color Palette - Light Theme */
    --bg-app: #f1f5f9;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: #e2e8f0;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --color-brand: #1b365d; /* SEAC Logo Blue */
    --color-brand-hover: #11233d;
    --color-brand-light: rgba(27, 54, 93, 0.08);
    
    --color-accent: #e58c0d; /* SEAC Logo Orange */
    --color-accent-hover: #c97b0b;
    --color-accent-light: rgba(229, 140, 13, 0.12);
    
    --color-success: #7cb342; /* SEAC Logo Green */
    --color-success-light: rgba(124, 179, 66, 0.12);
    --color-success-text: #558b2f;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 70px;
    --sidebar-width: 380px;
}

/* Dark Theme Variables override */
body.dark-theme {
    --bg-app: #0b0f19;
    --bg-card: #151f32;
    --bg-sidebar: #0f1726;
    --border-color: #1e293b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    
    --color-brand-light: rgba(27, 54, 93, 0.25);
    --color-accent-light: rgba(229, 140, 13, 0.25);
    --color-success-light: rgba(124, 179, 66, 0.25);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Header styling */
.app-header {
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.logo-img {
    height: 38px;
    object-fit: contain;
}

.logo-dark {
    display: none;
}

body.dark-theme .logo-light {
    display: none;
}

body.dark-theme .logo-dark {
    display: block;
}

.header-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border-color);
}

.logo-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-brand);
    letter-spacing: -0.2px;
}

body.dark-theme .logo-text h1 {
    color: var(--text-main);
}

.logo-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: var(--color-brand);
    background-color: var(--bg-app);
    border-color: var(--color-brand);
}

body.dark-theme .btn-icon:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* App Container Layout */
.app-container {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--header-height));
    position: relative;
}

/* Sidebar styling */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.sidebar-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 4px;
}

body.dark-theme .sidebar-header h2 {
    color: var(--text-main);
}

.sidebar-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Scrollable container for companies list */
.sidebar-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar customization */
.sidebar-list-container::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar-list-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.sidebar-list-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* Filters styling */
.filter-section {
    padding: 16px 24px;
    background-color: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Premium Select styling */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition-fast);
    outline: none;
}

.custom-select:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-brand-light);
}

body.dark-theme .custom-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.custom-select-wrapper::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-color: var(--text-muted);
    clip-path: polygon(100% 0, 0 0, 50% 100%);
    pointer-events: none;
    transition: transform var(--transition-fast);
}

/* Company Card Styling */
.company-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    min-height: 64px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center; /* Centrato in verticale rispetto alla cornice */
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-brand);
}

body.dark-theme .company-card:hover {
    border-color: var(--color-accent);
}

.company-card.active {
    border-color: var(--color-brand);
    background-color: var(--color-brand-light);
}

body.dark-theme .company-card.active {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}

.company-card.active::before {
    background-color: var(--color-brand);
}

body.dark-theme .company-card.active::before {
    background-color: var(--color-accent);
}

.company-card-content {
    display: flex;
    width: 100%;
    align-items: center; /* Centrato in verticale rispetto alla cornice */
    justify-content: space-between;
    gap: 12px;
}

.company-name {
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    flex: 1;
}

.company-meta-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-city {
    background-color: var(--bg-app);
    color: var(--text-muted);
}

.badge-code {
    background-color: var(--color-brand-light);
    color: var(--color-brand);
}

body.dark-theme .badge-code {
    background-color: rgba(229, 140, 13, 0.15);
    color: var(--color-accent);
}

.badge-distance {
    background-color: var(--color-success-light);
    color: var(--color-success-text);
}

.company-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

.company-info-row:hover {
    color: var(--text-main);
}

.company-info-row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.company-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.btn-card-action {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

body.dark-theme .btn-card-action {
    color: var(--color-accent);
}

.btn-card-action:hover {
    text-decoration: underline;
}

.btn-card-action svg {
    width: 14px;
    height: 14px;
}

/* Sidebar Footer (Persistent Geolocation Panel) */
.sidebar-geolocation-panel {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-geo {
    background-color: var(--color-brand);
    color: white;
    border: none;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(27, 54, 93, 0.2);
    transition: all var(--transition-fast);
}

.btn-geo:hover {
    background-color: var(--color-brand-hover);
    transform: translateY(-1px);
}

body.dark-theme .btn-geo {
    background-color: var(--color-accent);
    box-shadow: 0 4px 6px -1px rgba(229, 140, 13, 0.2);
}

body.dark-theme .btn-geo:hover {
    background-color: var(--color-accent-hover);
}

.btn-geo svg {
    width: 18px;
    height: 18px;
}

.btn-geo.active-filter {
    background-color: #ef4444 !important;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2) !important;
}

.btn-geo.active-filter:hover {
    background-color: #dc2626 !important;
}

.geo-status-msg {
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
    color: var(--text-muted);
}

.geo-status-msg strong {
    color: var(--color-success-text);
}

/* Empty State styling */
.empty-list-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-app);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    gap: 12px;
    margin: 20px 0;
}

.empty-list-state svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.empty-list-state p {
    font-size: 0.88rem;
    font-weight: 500;
}

.btn-reset {
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-reset:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
}

/* Map Content Area */
.app-content {
    flex: 1;
    height: 100%;
    position: relative;
    background-color: var(--bg-app);
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom styles to override Leaflet themes */
.leaflet-container {
    font-family: inherit !important;
    background: var(--bg-app) !important;
}

/* Customizing Leaflet Popups for premium look */
.leaflet-popup-content-wrapper {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 6px !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-popup-tip {
    background-color: var(--bg-card) !important;
    border-left: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    padding: 8px 8px 0 0 !important;
    font-size: 16px !important;
}

.leaflet-popup-close-button:hover {
    color: var(--text-main) !important;
}

/* Popup content customization */
.map-popup-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 240px;
    padding: 4px;
}

.map-popup-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.map-popup-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-brand);
    margin-bottom: 2px;
}

body.dark-theme .map-popup-title {
    color: var(--color-accent);
}

.map-popup-code {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.map-popup-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-popup-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-main);
    text-decoration: none;
}

.map-popup-row.link:hover {
    color: var(--color-brand);
}

body.dark-theme .map-popup-row.link:hover {
    color: var(--color-accent);
}

.map-popup-row svg {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.map-popup-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-app);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

/* Leaflet Zoom control styling */
.leaflet-bar {
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
}

.leaflet-bar a {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: all var(--transition-fast) !important;
}

.leaflet-bar a:hover {
    background-color: var(--bg-app) !important;
    color: var(--color-brand) !important;
}

body.dark-theme .leaflet-bar a:hover {
    color: var(--color-accent) !important;
}

/* Custom Marker Styling */
.custom-div-icon {
    background: none;
    border: none;
}

.marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-brand);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -16px 0 0 -16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid white;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .marker-pin {
    background: var(--color-accent);
    border-color: var(--bg-card);
}

.marker-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
}

body.dark-theme .marker-pin::after {
    background: var(--bg-card);
}

.custom-div-icon.active .marker-pin {
    background: var(--color-success);
    transform: rotate(-45deg) scale(1.2);
    z-index: 99999 !important;
}

/* Floating summary badge on the map */
.map-overlay-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 500;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

body.dark-theme .map-overlay-badge {
    color: var(--text-main);
}

.map-overlay-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .app-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    
    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: auto;
        max-height: 50vh;
    }
    
    .app-content {
        height: 60vh;
        width: 100%;
    }
    
    .map-overlay-badge {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* --- MODALS AND ADMIN PANEL SYSTEMS --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 100%;
    margin: 20px;
    position: relative;
    overflow: hidden;
    animation: modal-enter var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

@keyframes modal-enter {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-sm {
    max-width: 420px;
}

.modal-lg {
    max-width: 900px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-brand);
}

body.dark-theme .modal-header h3 {
    color: var(--text-main);
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.btn-close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Shake Animation for Password Error */
.shake-error {
    animation: shake 0.4s ease-in-out;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Admin Table & Layout styling */
.admin-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-toolbar-right {
    display: flex;
    align-items: center;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 55vh;
}

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

.admin-table th {
    background-color: var(--bg-app);
    color: var(--text-muted);
    font-weight: 700;
    padding: 14px 16px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: var(--color-brand-light);
}

body.dark-theme .admin-table tbody tr:hover {
    background-color: var(--color-accent-light);
}

/* Action Buttons Compatti */
.btn-action-icon {
    background: none;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    margin: 0 4px;
}

.btn-action-icon:hover {
    background-color: var(--bg-app);
}

.btn-action-icon.edit:hover {
    color: var(--color-brand);
    border-color: var(--color-brand);
}

body.dark-theme .btn-action-icon.edit:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-action-icon.delete:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background-color: rgba(239, 68, 68, 0.05);
}

.btn-action-icon svg {
    width: 16px;
    height: 16px;
}

/* Form Grid & Layout styling */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.col-span-2 {
    grid-column: span 2;
}

.form-actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Modal Loading Overlay styling */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    color: white;
}

.modal-loading-overlay .spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
}

/* Responsive modal rules */
@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-toolbar-right {
        justify-content: space-between;
    }
}

