/* admin.css: REDESIGN */

/* 1. Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Updated Color Palette (Softer, more contemporary) */
    --primary-color: #0077B6; /* Deep Sky Blue - Strong, trustworthy accent */
    --secondary-color: #6C757D; /* Muted Grey - For secondary actions/text */
    --accent-color: #FFC300; /* Warm Amber - For highlights/alerts */
    --success-color: #28A745; /* Standard Green */
    --error-color: #DC3545; /* Standard Red */
    --background-color: #F4F7F9; /* Very Light Blue-Grey - Soft background */
    --card-background: #ffffff; /* Pure White */
    --text-color: #212529; /* Near Black */
    --light-text: #757575; /* Standard Light Grey */
    --border-color: #E9ECEF; /* Extremely light border */
    
    /* Layout and Polish */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px; /* Slightly larger, softer corners */
    --box-shadow: 0 6px 20px rgba(0,0,0,0.08); /* Deeper, softer shadow for elevation */
    --input-focus-shadow: 0 0 0 3px rgba(0, 119, 182, 0.25); /* Subtle focus ring */
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

main {
    padding: 30px 20px; /* Increased top/bottom padding */
}

/* --- Theme Overrides --- */

.theme-dark {
    --primary-color: #4DB6AC; /* Teal - Calming primary */
    --secondary-color: #90A4AE;
    --accent-color: #FFEB3B;
    --background-color: #1F2937; /* Dark Slate Grey - Deep background */
    --card-background: #2C3E50; /* Darker Blue-Grey - Card contrast */
    --text-color: #ECF0F1;
    --light-text: #BDBDBD;
    --border-color: #424242;
    --box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    --input-focus-shadow: 0 0 0 3px rgba(77, 182, 172, 0.3);
}
.theme-dark header, .theme-dark footer, .theme-dark .modal-content, .theme-dark .filter-sidebar, .theme-dark .admin-header, .theme-dark .login-card, .theme-dark .settings-form, .theme-dark .data-table-container, .theme-dark .admin-content table, .theme-dark .admin-content th {
    background-color: var(--card-background);
    color: var(--text-color);
}
.theme-dark .admin-sidebar { background-color: #121A25; } /* Even darker for sidebar contrast */
.theme-dark .admin-content tr:nth-child(even) { background-color: #34495E; } /* Striping */
.theme-dark input, .theme-dark textarea, .theme-dark .premium-select { background-color: #3D5067; color: white; border-color: #3D5067; }


.theme-classic {
    --primary-color: #007bff; 
    --secondary-color: #6c757d; 
    --accent-color: #17a2b8; 
}
.theme-classic .admin-sidebar { background-color: #343a40; }


/* --- Form Elements and Buttons --- */

.premium-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px; /* Slightly smaller radius for buttons */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Enhanced spacing */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.primary-btn { background-color: var(--primary-color); color: white; }
.primary-btn:hover { 
    background-color: color-mix(in srgb, var(--primary-color) 85%, black); /* Subtle darkening for hover */
    box-shadow: 0 6px 15px rgba(0, 119, 182, 0.4); 
    transform: translateY(-1px);
}

.secondary-btn { 
    background-color: var(--secondary-color); 
    color: white; 
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}
.secondary-btn:hover { 
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    transform: translateY(-1px);
}

.success-btn { background-color: var(--success-color); color: white; }

input:not([type="checkbox"]), textarea, .premium-select {
    width: 100%;
    padding: 14px 15px; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px; /* Increased bottom margin */
    font-size: 16px;
    background-color: var(--card-background); /* Ensure background is set */
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, .premium-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--input-focus-shadow);
    outline: none;
}


/* --- Header (Public/Rental) --- */

header {
    background: var(--card-background);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07); /* Enhanced header shadow */
    position: relative; 
    z-index: 10;
}

.logo-container { display: flex; align-items: center; }
.logo { height: 40px; width: auto; margin-right: 15px; } /* Slightly larger logo */


.scroll-message-bar {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 8px 0; /* More vertical padding */
    overflow: hidden;
    font-size: 0.95em;
    font-weight: 500;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.scroll-message-content {
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


/* --- Hero Section and Search Bar --- */

.hero-section {
    background: center center/cover no-repeat; 
    height: 400px; /* Slightly taller hero */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Darker overlay for contrast */
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 20px;
}

.hero-title { 
    color: white; 
    font-size: 3em; 
    font-weight: 800; 
    margin-bottom: 30px; 
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.6); 
    letter-spacing: 1px;
}

.search-bar {
    background: white;
    padding: 20px; /* Increased padding */
    border-radius: 16px; /* Larger radius for the bar */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Prominent shadow */
    display: flex;
    gap: 15px; /* Increased gap */
    width: 90%;
    max-width: 1100px;
    transform: translateY(50%); /* Lift it halfway out of the hero */
    position: relative;
}

.search-bar input, .search-bar select {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    margin: 0;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--background-color);
}

.search-btn { min-width: 160px; } 

/* Adjust main content padding to account for the lifted search bar */
.car-rental-main { max-width: 1300px; margin: 0 auto; }
.main-content-wrapper { display: flex; gap: 40px; margin-top: 120px; } /* Pushed down to clear search bar */


/* --- Filter Sidebar --- */

.filter-sidebar {
    width: 300px; /* Slightly wider sidebar */
    padding: 30px; /* Increased padding */
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    align-self: flex-start; 
}

.filter-group { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.filter-group h4 { 
    color: var(--primary-color); 
    font-weight: 700; 
    margin-bottom: 12px; 
    text-transform: uppercase; 
    font-size: 0.85em; 
    letter-spacing: 1px;
}


.price-slider { -webkit-appearance: none; width: 100%; height: 6px; background: var(--border-color); border-radius: 5px; outline: none; transition: opacity .2s; }
.price-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-color); cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.price-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-color); cursor: pointer; }


/* --- Listings and Grid Controls --- */

.grid-controls { margin-bottom: 30px; text-align: right;}
.view-toggle-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9em;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

.view-toggle-btn.secondary-btn {
    background-color: var(--card-background);
    color: var(--light-text);
    border: 1px solid var(--border-color);
}
.view-toggle-btn.secondary-btn:hover {
    background-color: var(--background-color);
}

.view-toggle-btn.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.3);
}


.listings-area {
    flex-grow: 1;
    display: grid;
    gap: 25px; /* Slight reduction in gap */
    grid-template-columns: repeat(3, 1fr); 
}
.listings-area.grid-2 { grid-template-columns: repeat(2, 1fr); }
.listings-area.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Better responsive grid */
}

@media (max-width: 1000px) {
    .listings-area { grid-template-columns: repeat(2, 1fr); }
    .filter-sidebar { width: 250px; }
    .main-content-wrapper { gap: 30px; }
}
@media (max-width: 768px) {
    .main-content-wrapper { flex-direction: column; margin-top: 80px; } /* Adjusted margin for search bar */
    .filter-sidebar { width: 100%; }
    .listings-area, .listings-area.grid-2, .listings-area.grid-3, .listings-area.grid-view { 
        grid-template-columns: 1fr; 
    }
    .search-bar { transform: translateY(20%); padding: 15px; flex-wrap: wrap; }
    .search-bar input, .search-bar select, .search-btn { flex-basis: 100%; }
}

/* --- Car Card (Grid View) --- */

.car-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Lighter default shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer; 
    border: 1px solid var(--border-color);
}

.car-card:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    transform: translateY(-3px); /* Subtle lift on hover */
}
.car-image-container { position: relative; height: 240px; } /* Taller image */
.car-image-container img { width: 100%; height: 100%; object-fit: cover; }
.car-card .book-btn { z-index: 2; position: relative; } 

.car-type-badge {
    position: absolute; top: 15px; left: 0;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 6px 15px;
    font-weight: 600;
    font-size: 0.85em;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.car-details { padding: 20px; }
.car-model { 
    font-size: 1.5em; 
    font-weight: 700; 
    color: var(--primary-color); /* Highlight model name */
    margin-bottom: 5px; 
}
.car-features { margin-bottom: 15px; }
.car-features span { 
    font-size: 0.9em; 
    color: var(--light-text); 
    margin-right: 15px;
    font-weight: 500;
}

.car-price-block {
    display: flex; flex-direction: column; align-items: flex-end;
    margin: 15px 0 5px 0; padding-top: 15px;
    border-top: 1px dashed var(--border-color); /* Dashed separator */
}

.price-label { color: var(--secondary-color); font-size: 0.85em; text-transform: uppercase; }

.price-value {
    font-size: 2.2em; 
    font-weight: 800; 
    color: var(--primary-color); 
    margin-top: 5px;
}

.price-value span { font-size: 0.6em; font-weight: 600; color: var(--secondary-color); } /* Smaller 'per day' */

.book-btn { 
    width: 100%; 
    border-radius: 8px; 
    padding: 10px;
}
.car-card.booked { 
    opacity: 0.8; 
    background-color: #f0f0f0; 
    cursor: default;
}
.car-card.booked:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    transform: none;
}
.car-card.booked .book-btn { background-color: var(--secondary-color); }


/* --- Car Card (List View) --- */

.listings-area.list-view {
    display: flex; 
    flex-direction: column;
    gap: 25px;
    grid-template-columns: 1fr; 
}

.car-card.list-view {
    flex-direction: row; 
    min-height: 200px; 
    align-items: stretch; 
}

.car-card.list-view .car-image-container {
    flex: 0 0 300px; /* Wider image */
    height: auto; 
}

.car-card.list-view .car-image-container img {
    height: 100%;
    width: 100%;
}

.car-card.list-view .car-details {
    flex: 3; 
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-description-list { 
    color: var(--light-text);
    font-size: 0.9em;
    margin-bottom: 15px;
}
.car-description-full {
    max-height: 100px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: var(--background-color);
    font-size: 0.9em;
    white-space: pre-wrap; 
}

.car-card.list-view .car-action-block {
    flex: 0 0 180px; /* Wider action column */
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--border-color);
    background-color: color-mix(in srgb, var(--card-background) 95%, var(--border-color)); /* Subtle background in action block */
}

.car-card.list-view .car-price-block {
    border-top: none; 
    padding-top: 0;
    margin-bottom: 20px;
    align-items: center;
}
.car-card.list-view .book-btn { width: 95%; }

@media (max-width: 992px) { /* Changed 900px to 992px for better tablet support */
    .car-card.list-view { flex-wrap: wrap; }
    
    .car-card.list-view .car-image-container { 
        flex: 1 1 100%; 
        height: 220px; 
    }
    
    .car-card.list-view .car-action-block { 
        flex: 1 1 100%; 
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        border-left: none; 
        border-top: 1px solid var(--border-color);
    }
    .car-card.list-view .car-price-block { 
        align-items: flex-start; 
        margin: 0; 
    }
    .car-card.list-view .book-btn { 
        width: 45%; 
        max-width: 250px; 
    }
}


/* --- Modal Styles --- */

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); } /* Darker overlay for focus */
.modal-content {
    background-color: var(--card-background);
    margin: 8% auto; /* Slightly higher position */
    padding: 40px; /* Increased padding */
    border-radius: 16px; /* Larger, softer modal border */
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
    width: 90%; max-width: 550px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button { color: var(--light-text); float: right; font-size: 32px; font-weight: 300; line-height: 1; margin-top: -10px; }
.close-button:hover, .close-button:focus { color: var(--error-color); text-decoration: none; cursor: pointer; }

.date-group { display: flex; gap: 20px; margin-bottom: 10px; }
.date-group > div { flex: 1; }
.date-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95em; color: var(--secondary-color);}
.contact-options-group label {
    display: block; 
    margin-top: 5px; 
    margin-bottom: 5px; 
    font-size: 0.9em;
    font-weight: 500;
}
.contact-options-group input { margin-bottom: 10px; }

.modal-info-text { color: var(--secondary-color); font-size: 0.8em; margin-top: 10px; padding: 10px; background: var(--background-color); border-radius: 6px; } 

/* Status Colors - No change needed here, they are effective */
#booking-message.success, .status-available { color: var(--success-color); font-weight: bold; }
#booking-message.error, .status-booked, .status-cancelled { color: var(--error-color); font-weight: bold; }
.status-confirmed, .status-pending { color: var(--primary-color); font-weight: bold; }
.status-completed { color: #007bff; font-weight: bold; }


/* Image Detail Modal */

#image-detail-modal .modal-content { max-width: 1000px; padding: 40px; } /* Wider */ 

.img-detail-container { display: flex; gap: 30px; }
@media (max-width: 768px) { 
    .img-detail-container { flex-direction: column; } 
    #image-detail-modal .modal-content { padding: 25px; }
}

.img-carousel { flex: 3; position: relative; } 
.img-carousel img { width: 100%; height: auto; border-radius: var(--border-radius); max-height: 500px; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } 

.img-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.6); color: white; border: none; padding: 12px; cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    height: 50px; width: 50px;
    font-size: 1.2em;
    transition: background-color 0.2s;
}
.img-nav-btn:hover { background: rgba(0,0,0,0.8); }

#prev-img { left: 15px; }
#next-img { right: 15px; }

.img-details-list { flex: 2; padding-top: 0; }
.img-details-list h4 { color: var(--primary-color); margin-bottom: 20px; font-weight: 700; font-size: 1.2em; }
.detail-label {
    display: block; padding: 12px 18px; margin-bottom: 10px;
    background: var(--background-color); border-left: 4px solid var(--primary-color); /* Thicker border */
    border-radius: 6px;
    font-size: 0.95em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.detail-label strong { float: right; font-weight: 700; color: var(--text-color); }

.modal-book-action {
    margin-top: 30px; padding-top: 25px;
    border-top: 1px solid var(--border-color);
}
.modal-book-action .full-width { margin-top: 15px; }


/* --- WhatsApp Button --- */

.whatsapp-button {
    position: fixed; bottom: 30px; right: 30px; /* Slightly more prominent */
    background-color: var(--success-color);
    color: white; padding: 18px 25px; /* Larger button */
    border-radius: 50px; 
    text-decoration: none; font-weight: bold;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    z-index: 90; transition: all 0.3s ease;
    display: flex; align-items: center; gap: 10px;
    width: auto; 
    font-size: 1.1em;
}
.whatsapp-button:hover {
    background-color: color-mix(in srgb, var(--success-color) 85%, black);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.6);
}

/* --- Footer --- */

footer {
    background: #212529; /* Darker for better contrast */
    color: white; 
    padding: 40px 20px; 
    margin-top: 50px;
}

.footer-content { max-width: 1300px; margin: 0 auto; text-align: center; }

.footer-contact-info {
    display: flex; justify-content: center; align-items: center;
    gap: 25px; margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-contact-info a { color: #ADB5BD; text-decoration: none; transition: color 0.2s; }
.footer-contact-info a:hover { color: var(--accent-color); }
.phone-icon { color: var(--accent-color); font-size: 1.3em; margin-right: 5px; }


/* --- Admin Authentication --- */

.admin-auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: var(--background-color); }
.login-card {
    background-color: var(--card-background); padding: 50px;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%; max-width: 400px;
}

.login-card h2 { 
    color: var(--primary-color); 
    margin-bottom: 8px; 
    font-size: 1.8em; 
    font-weight: 700;
}
.login-card p { color: var(--light-text); margin-bottom: 30px; }
.full-width { width: 100%; margin-top: 25px; }


/* --- Admin Layout --- */

.admin-container { display: flex; min-height: 100vh; flex-direction: column; }
.admin-header {
    background-color: var(--card-background); 
    padding: 15px 30px; 
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-color); /* Primary color strip for brand identity */
}

.header-logo { color: var(--primary-color); font-weight: 800; font-size: 1.6em; letter-spacing: 0.5px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.home-btn {
    padding: 8px 12px;
    font-size: 1.1em;
    line-height: 1;
    background-color: var(--background-color);
    color: var(--primary-color);
}
.home-btn:hover {
    background-color: var(--border-color);
}


.admin-main { display: flex; flex: 1; }

.admin-sidebar {
    width: 250px; /* Slimmer sidebar */
    background-color: #2C3E50; /* Darker blue-grey for admin theme */
    color: white; 
    padding: 20px 0; /* Vertical padding only */
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
    flex-shrink: 0; 
}

.admin-sidebar button {
    background: none; border: none; color: #ECF0F1;
    padding: 15px 25px; /* Horizontal padding for alignment */
    text-align: left; font-size: 1em; font-weight: 500;
    border-radius: 0; /* No radius in sidebar for clean edges */
    display: flex; align-items: center; gap: 15px;
    transition: all 0.2s;
    border-left: 5px solid transparent;
}

.admin-sidebar button:hover { 
    background-color: #34495E; 
    border-left: 5px solid var(--secondary-color);
}
.admin-sidebar button.active { 
    background-color: #34495E;
    border-left: 5px solid var(--primary-color); /* Highlight active link */
    color: white;
}

#content-area { flex-grow: 1; padding: 40px; background-color: var(--background-color); }


/* --- Admin Content & Table --- */

.admin-content h2 { 
    margin-bottom: 5px; 
    font-size: 1.8em; 
    font-weight: 700;
}
.content-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color); /* Thicker border */
}


.data-table-container {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow-x: auto; 
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.admin-content table {
    width: 100%; min-width: 1000px; 
    border-collapse: collapse; margin: 0;
}

.admin-content th {
    background-color: var(--background-color); 
    font-weight: 600; 
    color: var(--secondary-color);
    padding: 18px 15px; /* Increased vertical padding */
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}
.theme-dark .admin-content th { background-color: #34495E; color: var(--light-text); }

.admin-content td {
    padding: 15px; 
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap; 
    font-size: 0.95em;
}

.admin-content tr:nth-child(even) { background-color: #FAFAFA; }
.theme-dark .admin-content tr:nth-child(even) { background-color: #2C3E50; }
.admin-content tr:hover { background-color: #EFEFEF; }
.theme-dark .admin-content tr:hover { background-color: #34495E; }

.admin-content tr:last-child td { border-bottom: none; }

.edit-btn, .delete-btn, .status-btn, .compact-action-btn { 
    border-radius: 6px; 
    font-weight: 500;
    transition: background-color 0.2s;
    text-transform: capitalize;
}

.edit-btn { background-color: var(--accent-color); color: var(--text-color); padding: 10px 15px; }
.edit-btn:hover { background-color: color-mix(in srgb, var(--accent-color) 85%, black); }
.delete-btn { background-color: var(--error-color); color: white; padding: 10px 15px; }
.delete-btn:hover { background-color: color-mix(in srgb, var(--error-color) 85%, black); }
.status-btn { background-color: var(--primary-color); color: white; padding: 10px 15px; }
.status-btn:hover { background-color: color-mix(in srgb, var(--primary-color) 85%, black); }


.car-image-preview {
    width: 70px; /* Larger preview */
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: inline-block;
    vertical-align: middle;
}
.car-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- Settings/Form Content --- */

.settings-form {
    background-color: var(--card-background); 
    padding: 40px;
    border-radius: var(--border-radius); 
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.settings-form h3 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px; 
    margin-bottom: 30px; 
    color: var(--text-color);
    font-size: 1.5em;
    font-weight: 600;
}

.checkbox-label {
    display: flex; align-items: center; gap: 10px;
    margin: 15px 0; font-weight: 500;
    cursor: pointer;
}

/* Vehicle Types Management */
.add-type-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.add-type-form input {
    flex-grow: 1;
    margin-bottom: 0;
}

#type-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.type-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
}
.type-list-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.delete-type-btn {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: background-color 0.2s;
}
.delete-type-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}


.image-previews-container {
    display: none; 
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed var(--secondary-color); /* Distinct dashed border */
    border-radius: var(--border-radius);
    max-height: 150px;
    overflow-y: auto;
}

.image-preview {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid var(--primary-color); /* Highlighted border */
    background-color: #f0f0f0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Admin Cars Section Header --- */

#cars-section .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

#cars-section .content-header h2 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
    align-items: Left;
}

#cars-section .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#car-search-input {
    padding: 10px 15px; /* Adjusted padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    min-width: 250px;
}

#add-car-btn {
    padding: 10px 18px; /* Balanced button padding */
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

#car-search-input {
    background: url('data:image/svg+xml;utf8,<svg fill="%236C757D" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10,2a8,8,0,1,1-5.29,14.29L2.71,18.29a1,1,0,0,1-1.42-1.42l2-2A8,8,0,0,1,10,2m0,2a6,6,0,1,0,6,6A6,6,0,0,0,10,4Z"/></svg>') no-repeat 12px center; /* Slightly different position/color */
    background-size: 18px;
    padding-left: 40px; /* Adjusted padding */
}

/* Fix for mobile view heading alignment */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 15px;
    }
    
    .content-header h2 {
        text-align: left;
        width: 100%;
        font-size: 1.4rem;
        margin-bottom: 0;
        align-self: flex-start;
    }
    
    /* Specific fix for Fleet Management heading */
    #cars-section .content-header h2 {
        text-align: left !important;
        align-self: flex-start;
        justify-content: flex-start;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
        min-width: auto;
    }
}

/* --- Admin Responsive Adjustments --- */
@media (max-width: 768px) {
    
    .admin-header { padding: 15px 15px; }
    .header-actions span { display: none; } 
    .admin-main { flex-direction: column; }
    #content-area { padding: 20px 15px; }
    .content-header { flex-direction: column; align-items: flex-start; gap: 10px;}
    .content-header h2 { margin-bottom: 0; }
    .premium-btn { padding: 10px 15px; font-size: 0.9em; }

    
    .admin-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row; 
        overflow-x: auto; 
        white-space: nowrap; 
        padding: 10px;
        border-radius: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 5;
    }
    .admin-sidebar button {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 0.85em;
        gap: 5px;
        text-transform: uppercase;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .admin-sidebar button.active { border-radius: 4px; border-bottom: 3px solid var(--primary-color); }
    .admin-sidebar button.active, .admin-sidebar button:hover { border-left: none; }

    
    .login-card { margin: 10px; padding: 40px 25px; }

    
    .date-group { flex-direction: column; gap: 0; }
    .settings-form { padding: 25px; }

    
    .admin-content table {
        min-width: 700px; 
    }
    .compact-action-btn {
        padding: 6px 10px !important;
        font-size: 0.85em !important;
        margin: 2px !important;
        display: inline-block;
    }
}

@media (max-width: 576px) {
    #cars-section .content-header { flex-wrap: wrap; }
    #cars-section .header-actions { flex-direction: column; align-items: stretch; }
    #car-search-input, #add-car-btn { min-width: auto; width: 100%; }
}

/* Image Upload Styles */
.image-upload-section {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.image-upload-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

#car-image-upload {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-background);
    width: 100%;
    cursor: pointer;
}

#car-image-upload:hover {
    border-color: var(--primary-color);
}

#upload-progress {
    margin-top: 10px;
    padding: 10px;
    background: var(--background-color);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

#upload-progress p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: var(--text-color);
}

/* Make the URLs textarea less prominent since upload is primary */
#car-images {
    font-size: 0.9em;
    margin-top: 10px;
}

/* Dark theme support */
.theme-dark .enable-btn {
    background: #27ae60;
    color: white;
}

.theme-dark .enable-btn:hover {
    background: #219653;
}

.theme-dark .disable-btn {
    background: #e74c3c;
    color: white;
}

.theme-dark .disable-btn:hover {
    background: #c0392b;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .admin-content td:last-child > div {
        gap: 4px;
    }
    
    .admin-content td:last-child .premium-btn {
        padding: 6px 8px;
        font-size: 0.8em;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: var(--card-background);
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85em;
    color: var(--light-text);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.1em;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

/* Toast Types */
.toast-success {
    border-left-color: var(--success-color);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--error-color);
}

.toast-error .toast-icon {
    color: var(--error-color);
}

.toast-warning {
    border-left-color: var(--accent-color);
}

.toast-warning .toast-icon {
    color: var(--accent-color);
}

.toast-info {
    border-left-color: var(--primary-color);
}

.toast-info .toast-icon {
    color: var(--primary-color);
}

/* Dark theme support */
.theme-dark .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        max-width: none;
    }
}


/* Center align Actions column header and content */
.admin-content th:last-child,
.admin-content td:last-child {
    text-align: center;
}

/* Center the buttons container */
.admin-content td:last-child > div {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.admin-content td:last-child .premium-btn {
    margin: 0;
    padding: 8px 12px;
    font-size: 0.85em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Compact buttons */
.enable-btn, .disable-btn {
    padding: 8px 12px !important;
    font-size: 0.85em !important;
    min-width: 80px;
}

.edit-btn, .delete-btn {
    padding: 8px 12px !important;
    font-size: 0.85em !important;
    min-width: 60px;
}

/* Ensure table column has enough width for centered buttons */
.admin-content th:last-child,
.admin-content td:last-child {
    min-width: 220px;
}

/* Enhanced Mobile responsive for centered buttons */
@media (max-width: 768px) {
    .admin-content table {
        min-width: 700px; /* Ensure table is scrollable */
    }
    
    .admin-content th:last-child,
    .admin-content td:last-child {
        min-width: 180px; /* Reduced for mobile */
        padding: 10px 8px; /* Adjusted padding */
    }
    
    .admin-content td:last-child > div {
        min-width: 160px; /* Reduced for mobile */
        gap: 4px;
        justify-content: center;
    }
    
    .admin-content td:last-child .premium-btn {
        padding: 6px 8px;
        font-size: 0.75em; /* Smaller font for mobile */
        min-width: auto;
        flex: 1; /* Allow buttons to grow/shrink equally */
        max-width: 70px; /* Prevent buttons from getting too wide */
    }
    
    .enable-btn, .disable-btn {
        min-width: 65px !important; /* Smaller for mobile */
        font-size: 0.75em !important;
    }
    
    .edit-btn, .delete-btn {
        min-width: 45px !important; /* Smaller for mobile */
        font-size: 0.75em !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Alternative: Stack buttons vertically on very small mobile */
    .admin-content td:last-child > div {
        flex-direction: column;
        gap: 3px;
        min-width: 100px; /* Much narrower for vertical layout */
    }
    
    .admin-content td:last-child .premium-btn {
        width: 100%; /* Full width in vertical layout */
        max-width: none;
        padding: 5px 8px;
        font-size: 0.75em;
    }
    
    .admin-content th:last-child,
    .admin-content td:last-child {
        min-width: 110px; /* Much narrower for vertical layout */
    }
}

/* --- License Verification Styles (Redesign - Issue 4) --- */

.license-verification-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns content to the top */
    min-height: 70vh;
    padding: 20px 0;
}

.license-card {
    max-width: 650px; /* Wider card for better content display */
    width: 100%;
    text-align: center;
    padding: 40px;
}

.license-icon {
    font-size: 3.5rem; /* Slightly smaller */
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.license-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.license-description {
    color: var(--light-text);
    margin-bottom: 25px;
    line-height: 1.5;
}

.license-form {
    margin: 30px 0 20px;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.license-help {
    font-size: 0.8em;
    color: var(--secondary-color);
}

.license-status-container {
    margin: 15px 0 25px;
}

.license-status {
    padding: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.license-status.verified {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.license-status.verified i {
    color: #28a745;
    font-size: 1.5em;
}

.license-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.license-status.invalid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.license-support {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.license-details-box {
    background: var(--background-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.license-details-box div {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-details-box strong {
    font-weight: 700;
}
.license-details-box i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    font-size: 1em;
}

/* Mobile Responsive Adjustments for License Section */
@media (max-width: 600px) {
    .license-card {
        padding: 20px;
        margin: 10px;
    }
    .license-verification-container {
        min-height: 60vh;
    }
    .license-details-box {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 8px;
    }
    .license-form {
        padding: 15px;
    }
    .license-status {
        font-size: 0.9em;
        padding: 15px;
    }
    .license-status.verified i {
        font-size: 1.2em;
    }
}

/* Global Loading Spinner */
.global-loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.global-loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-container {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.spinner-logo {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.spinner-logo i {
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.spinner-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spinner-text p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

/* Spinner Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Pulse animation for additional visual interest */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.spinner-container {
    animation: pulse 3s infinite;
}

/* Dark theme support */
.theme-dark .global-loading-spinner {
    background: linear-gradient(135deg, #2C3E50, #34495E);
}

/* Enhanced Login Form Styles */
.admin-auth-container .error {
    color: var(--error-color);
    background: rgba(220, 53, 69, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
    margin: 15px 0;
    font-weight: 500;
    text-align: left;
}

.admin-auth-container .success {
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    margin: 15px 0;
    font-weight: 500;
    text-align: left;
}

/* Login button loading state */
.admin-auth-container button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.admin-auth-container .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input error states */
.admin-auth-container input:invalid {
    border-color: var(--error-color);
}

.admin-auth-container input:focus:invalid {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Vehicle Sales Specific Styles */
.sales-features {
    background: var(--background-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.sales-features h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

/* License Management Styles */
.license-upgrade-options {
    margin: 20px 0;
    padding: 20px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.license-upgrade-options h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.license-upgrade-options button {
    margin: 5px;
    width: calc(100% - 10px);
}

.license-management {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Sales-specific status indicators */
.status-for-sale {
    color: var(--text-color);
}

.status-sold {
    color: rgb(174, 145, 0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .license-upgrade-options button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Sales Vehicle Form Styles */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row input,
.form-row select {
    flex: 1;
    margin-bottom: 0;
}

/* Sales specific status styles */
.status-for-sale {
    color: rgb(0, 97, 8);
    font-weight: bold;
}

.status-sold {
    color: rgb(193, 167, 38);
    font-weight: bold;
}

/* WhatsApp Contact Styles */
.whatsapp-contact-link {
    color: var(--success-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.whatsapp-contact-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.whatsapp-action-button {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.whatsapp-btn:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Dark theme support */
.theme-dark .whatsapp-contact-link {
    color: #25D366;
}

.theme-dark .whatsapp-contact-link:hover {
    color: #128C7E;
}

.image-previews-container {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
}

.image-preview {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    background-color: #f0f0f0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Settings page Upload Button Styles */
.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    
}
.form-group-upload {
    margin-bottom: 20px;
}
.input-with-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}
.input-with-upload input[type="url"] {
    flex-grow: 1;
    margin-bottom: 0;
}
.upload-label-btn {
    flex-shrink: 0;
    padding: 12px 15px;
}
.upload-input-hidden {
    display: none;
}
.upload-status {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    color: var(--primary-color);
}

/* --- FIX: Table Layouts (Bookings & Sales) --- */

/* 1. Optimized width for Bookings & Sales Tables */
/* Reduced from 1400px to 1100px to prevent excessive scrolling */
#bookings-section .data-table-container table,
#sales-section .data-table-container table,
#booking-list-container table,
#sales-inquiries-container table {
    min-width: 1100px !important; 
}

/* 2. Allow text wrapping for long data (Emails, Dates) */
/* This prevents columns from forcing the table to be super wide */
.admin-content td {
    white-space: normal !important; 
    vertical-align: middle;
    padding: 12px 10px; /* Slightly tighter padding */
    line-height: 1.4;
}

/* 3. Tweak specific columns */
.admin-content td:nth-child(5), /* Booking Date */
.admin-content td:nth-child(6) { /* Duration */
    width: 90px;
    text-align: center;
}

/* 4. Fix Actions Column Layout */
.admin-content td:last-child {
    text-align: center;
    width: 1%; /* Shrink to fit content */
    white-space: nowrap !important; /* Keep container tight */
}

/* Ensure buttons sit nicely */
.admin-content td:last-child > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* Allow stacking on very small screens */
    min-width: 260px; /* Ensure enough room for 3 buttons side-by-side */
}