/* ========================= Root Variables ========================= */
:root {
    --primary-color: #00B0B0;
    --secondary-color: #00B0B0;
    --text-color: white;
    --button-hover-bg: #1c7c32;
}

/* ========================= Banner Styling ========================= */

/* Logged-in User Styling */
.loggedInUser {
    font-size: 1.1rem; /* Slightly larger font size */
    color: black;    /* Black text for better visibility */
    margin-top: 5px; /* Small spacing below the title */
}
.banner-container {
    padding: 20px;
    color: var(--text-color);
    position: relative;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.banner {
    color: white;
    border-radius: 8px;
}

.banner h1 {
    font-size: 2rem;
    margin: 0;
}

.banner .btn:hover {
    background-color: var(--secondary-color);
}

.banner .btn-light {
    display: flex;
    align-items: center;
    gap: 8px;
}

.combined-banner-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 15px;
}

/* Logged-in User Styling */
#loggedInUser {
    font-size: 0.875rem; /* Slightly smaller font */
    color: #6c757d; /* Text-muted style */
}


.memorabilia-banner {
    background-color: rgba(255, 0, 0, 0.8); /* Red background with transparency */
    color: white; /* White text */
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 0; /* Adds vertical spacing */
    text-align: center;
    margin: 0; /* Reset default margin */
    font-size: 1rem;
    border-top: 2px solid #ff0000; /* Top border */
    border-bottom: 2px solid #ff0000; /* Bottom border */
}

/* ========================= Navigation Styling ========================= */
.admin-nav {
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 10px 0;
    background-color: #f8f9fa; 
    border-bottom: 1px solid #dee2e6;
}

.admin-nav .nav {
    display: flex;
    gap: 20px; 
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav .nav-item {
    display: inline-block;
}

.admin-nav .nav-link {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.admin-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.admin-nav .nav-link-divider {
    width: 1px;
    height: 20px;
    background-color: #dee2e6;
    align-self: center;
}

.admin-nav .btn-outline-dark {
    border: 2px solid #333;
    color: #333;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.admin-nav .btn-outline-dark:hover {
    background-color: #333;
    color: white;
}



/* ========================= Table Styling ========================= */
.table-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 15px;
}

.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table-custom thead {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-weight: bold;
}

.table-custom th, .table-custom td {
    padding: 12px;
    text-align: center;
    font-size: 0.875rem;
    border-bottom: 1px solid #dee2e6;
}

.table-custom tbody tr:hover {
    background-color: #eef5ff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

td:last-child {
    pointer-events: auto !important;
}


/* ========================= Pagination Styling ========================= */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-controls button {
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-controls button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.pagination-controls .active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
}

/* ========================= Toggle Switch ========================= */
.switch {
    position: relative;
    display: inline-block;
     width: 60px; /* Increase size for better tap targeting */
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
   height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* ========================= Modal Styling ========================= */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    max-height: 90vh; 
    overflow-y: auto;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 20px 30px;
}

.modal-header h5 {
    font-size: 1.5rem;
    font-weight: bold;
}

.modal-body {
    padding: 20px 30px;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-body h6 {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 5px;
    color: #333;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 20px 30px;
    justify-content: flex-end;
    gap: 10px; 
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
}

.modal-lg {
    max-width: 90%;
    width: 90%;
}

/* ========================= Input and Label Styling ========================= */
.form-control {
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* ========================= Message Box Styling ========================= */
.message-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}

.message-box.info {
    background-color: #d9edf7;
    color: #31708f;
}

.message-box.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.message-box.error {
    background-color: #f2dede;
    color: #a94442;
}

/* ========================= Inventory Card Styling ========================= */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    flex-grow: 1; 
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.car-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}

.view-details-btn {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.view-details-btn:hover {
    background-color: var(--button-hover-bg);
}

/* ========================= Responsive Design ========================= */
@media (max-width: 768px) {
    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .modal-footer .btn {
        width: 100%;
    }
}
