/**
 * Manage Reservations Styles
 * Matches the multistep booking form design system
 * Uses wrapper scoping like fleet-form-style-wrapper
 *
 * @package Fleet_Booking_Addon
 * @since 1.0.0
 */

/* ============================================
   WRAPPER - Dark theme container
   All styles scoped under .fleet-manage-reservations-wrapper
   ============================================ */

/* Wrapper - Dark theme context */
.fleet-manage-reservations-wrapper {
    padding: 40px 20px;
    min-height: 100vh;
}

/* Main Container */
.fleet-manage-reservations-wrapper .fleetform-manage-reservations {
    background: var(--fleet-background-panel, #222);
    color: var(--fleet-text-white, #fff);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Inner Container */
.fleet-manage-reservations-wrapper .manage-reservations-container {
    background: var(--fleet-background-panel, #1a1a1a);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.fleet-manage-reservations-wrapper .manage-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--fleet-primary-color, #e0a241);
    padding-bottom: 15px;
    text-align: center;
}

.fleet-manage-reservations-wrapper .manage-header h2 {
    color: var(--fleet-primary-color, #e0a241);
    font-size: 2em;
    margin: 0 0 10px 0;
}

.fleet-manage-reservations-wrapper .manage-header .description {
    color: var(--fleet-text-light, #bcbcbc);
    font-size: 1.1em;
    margin: 0;
}

/* ============================================
   RESERVATION LOOKUP SECTION
   ============================================ */
.fleet-manage-reservations-wrapper .reservation-lookup {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--fleet-background-dark, #121212);
    border-radius: 4px;
}

.fleet-manage-reservations-wrapper .reservation-lookup > h3 {
    color: var(--fleet-primary-color, #ffb300);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Returning Customer Panel */
.fleet-manage-reservations-wrapper .returning-customer-panel {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-primary-color, #ffb300);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.fleet-manage-reservations-wrapper .returning-customer-panel h4,
.fleet-manage-reservations-wrapper .returning-customer-panel h5 {
    color: var(--fleet-primary-color, #ffb300);
    margin-top: 0;
}

.fleet-manage-reservations-wrapper .returning-customer-panel h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.fleet-manage-reservations-wrapper .returning-customer-panel h5 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--fleet-text-white, #fff);
}

/* Admin/Manager Panel */
.fleet-manage-reservations-wrapper .admin-search-panel {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-primary-color, #ffb300);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.fleet-manage-reservations-wrapper .admin-search-panel h4 {
    color: var(--fleet-primary-color, #ffb300);
    margin-top: 0;
    margin-bottom: 20px;
}

.fleet-manage-reservations-wrapper .admin-search-help {
    color: var(--fleet-text-white, #fff);
    margin: 0;
    font-size: 14px;
}

/* Logged In User Success Message */
.fleet-manage-reservations-wrapper .user-welcome-panel {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-success-color, #4caf50);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.fleet-manage-reservations-wrapper .user-welcome-panel p {
    margin: 0;
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .user-welcome-panel .welcome-message {
    color: var(--fleet-success-color, #4caf50);
    font-weight: bold;
}

.fleet-manage-reservations-wrapper .user-welcome-panel .loading-message {
    color: var(--fleet-text-light, #ccc);
    margin: 8px 0 0 0;
}

.fleet-manage-reservations-wrapper .user-welcome-panel a {
    color: var(--fleet-primary-color, #ffb300);
    text-decoration: none;
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .user-welcome-panel a:hover {
    text-decoration: underline;
}

/* ============================================
   SIGN-IN FORM
   ============================================ */
.fleet-manage-reservations-wrapper .signin-section {
    margin-bottom: 24px;
}

.fleet-manage-reservations-wrapper .signin-form {
    max-width: 400px;
}

.fleet-manage-reservations-wrapper .signin-form .form-group {
    margin-bottom: 16px;
}

.fleet-manage-reservations-wrapper .signin-form label {
    display: block;
    margin-bottom: 4px;
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .signin-form input[type="text"],
.fleet-manage-reservations-wrapper .signin-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--fleet-button-secondary-color, #555);
    border-radius: 4px;
    background: var(--fleet-background-panel, #2a2a2a);
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .signin-form input[type="text"]:focus,
.fleet-manage-reservations-wrapper .signin-form input[type="password"]:focus {
    outline: none;
    border-color: var(--fleet-primary-color, #ffb300);
}

.fleet-manage-reservations-wrapper .signin-form .remember-me {
    color: var(--fleet-text-light, #ccc);
    display: flex;
    align-items: center;
}

.fleet-manage-reservations-wrapper .signin-form .remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.fleet-manage-reservations-wrapper .signin-form .submit-btn {
    background: var(--fleet-primary-color, #ffb300);
    color: var(--fleet-text-black, #222);
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.fleet-manage-reservations-wrapper .signin-form .submit-btn:hover {
    background: var(--fleet-button-hover-color, #ffc933);
}

.fleet-manage-reservations-wrapper .signin-form .forgot-password {
    margin-top: 12px;
    text-align: center;
}

.fleet-manage-reservations-wrapper .signin-form .forgot-password a {
    color: var(--fleet-primary-color, #ffb300);
    font-size: 0.9em;
    text-decoration: none;
}

.fleet-manage-reservations-wrapper .signin-form .forgot-password a:hover {
    text-decoration: underline;
}

/* ============================================
   CUSTOMER LOOKUP (DL + Birthday)
   ============================================ */
.fleet-manage-reservations-wrapper .customer-lookup-section {
    margin-top: 24px;
}

.fleet-manage-reservations-wrapper .lookup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    max-width: 800px;
}

.fleet-manage-reservations-wrapper .lookup-field {
    display: flex;
    flex-direction: column;
}

.fleet-manage-reservations-wrapper .lookup-field label {
    display: block;
    margin-bottom: 4px;
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .lookup-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--fleet-button-secondary-color, #555);
    border-radius: 4px;
    background: var(--fleet-background-panel, #2a2a2a);
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .lookup-field input:focus {
    outline: none;
    border-color: var(--fleet-primary-color, #ffb300);
}

.fleet-manage-reservations-wrapper .lookup-field input::placeholder {
    color: var(--fleet-text-light, #777);
}

.fleet-manage-reservations-wrapper .lookup-btn {
    background: var(--fleet-primary-color, #ffb300);
    color: var(--fleet-text-black, #222);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.fleet-manage-reservations-wrapper .lookup-btn:hover {
    background: var(--fleet-button-hover-color, #ffc933);
}

/* ============================================
   PLACEHOLDER NOTICE
   ============================================ */
.fleet-manage-reservations-wrapper .placeholder-notice {
    margin-top: 30px;
    padding: 20px;
    background: var(--fleet-background-panel, #1a1a1a);
    border-left: 4px solid var(--fleet-primary-color, #e0a241);
    border-radius: 4px;
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .placeholder-notice .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Mobile responsive for lookup grid */
@media (max-width: 768px) {
    .fleet-manage-reservations-wrapper .lookup-grid {
        grid-template-columns: 1fr;
    }
    
    .fleet-manage-reservations-wrapper .lookup-btn {
        width: 100%;
    }
}

/* ============================================
   OR SEPARATOR
   ============================================ */
.fleet-manage-reservations-wrapper .or-separator {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.fleet-manage-reservations-wrapper .or-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--fleet-button-secondary-color, #444);
}

.fleet-manage-reservations-wrapper .or-separator span {
    position: relative;
    background: var(--fleet-background-panel, #1a1a1a);
    padding: 0 16px;
    color: var(--fleet-text-light, #999);
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .or-separator.large {
    margin: 32px 0;
}

.fleet-manage-reservations-wrapper .or-separator.large span {
    background: var(--fleet-background-dark, #222);
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   MANUAL LOOKUP FORM
   ============================================ */
.fleet-manage-reservations-wrapper .lookup-form {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #444);
    border-radius: 8px;
    padding: 24px;
}

.fleet-manage-reservations-wrapper .lookup-form h4 {
    color: var(--fleet-primary-color, #ffb300);
    margin-top: 0;
    margin-bottom: 20px;
}

.fleet-manage-reservations-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.fleet-manage-reservations-wrapper .form-field {
    display: flex;
    flex-direction: column;
}

.fleet-manage-reservations-wrapper .form-field.full-width {
    grid-column: 1 / -1;
}

.fleet-manage-reservations-wrapper .form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
}

.fleet-manage-reservations-wrapper .form-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--fleet-button-secondary-color, #555);
    border-radius: 4px;
    background: var(--fleet-background-panel, #2a2a2a);
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .form-field input:focus {
    outline: none;
    border-color: var(--fleet-primary-color, #ffb300);
}

.fleet-manage-reservations-wrapper .form-field input::placeholder {
    color: var(--fleet-text-light, #777);
}

.fleet-manage-reservations-wrapper .form-actions {
    text-align: center;
}

.fleet-manage-reservations-wrapper .btn {
    background: var(--fleet-primary-color, #ffb300);
    color: var(--fleet-text-black, #222);
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.fleet-manage-reservations-wrapper .btn:hover {
    background: var(--fleet-button-hover-color, #ffc933);
}

.fleet-manage-reservations-wrapper .btn:disabled {
    background: var(--fleet-button-secondary-color, #666);
    cursor: not-allowed;
}

/* Mobile responsive for form row */
@media (max-width: 768px) {
    .fleet-manage-reservations-wrapper .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESERVATION RESULTS SECTION
   ============================================ */
.fleet-manage-reservations-wrapper .reservation-results {
    margin-top: 32px;
}

.fleet-manage-reservations-wrapper .reservation-results h3 {
    color: var(--fleet-primary-color, #ffb300);
    margin-bottom: 20px;
}

.fleet-manage-reservations-wrapper .no-reservations {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #666);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--fleet-text-light, #ccc);
}

.fleet-manage-reservations-wrapper .no-reservations p {
    margin: 0;
    font-size: 16px;
}

/* ============================================
   RESERVATION LIST (CARDS)
   ============================================ */
.fleet-manage-reservations-wrapper .reservations-list {
    display: grid;
    gap: 20px;
}

.fleet-manage-reservations-wrapper .reservation-card {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #444);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fleet-manage-reservations-wrapper .reservation-card:hover {
    border-color: var(--fleet-primary-color, #ffb300);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2);
}

.fleet-manage-reservations-wrapper .reservation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fleet-button-secondary-color, #333);
}

.fleet-manage-reservations-wrapper .reservation-number {
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
    font-size: 18px;
}

.fleet-manage-reservations-wrapper .reservation-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.fleet-manage-reservations-wrapper .reservation-status.pending {
    background: var(--fleet-accent-color, #ff9800);
    color: var(--fleet-text-black, #000);
}

.fleet-manage-reservations-wrapper .reservation-status.confirmed {
    background: var(--fleet-success-color, #4caf50);
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .reservation-status.completed {
    background: var(--fleet-primary-color, #2196f3);
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .reservation-status.cancelled {
    background: var(--fleet-color-delete, #f44336);
    color: var(--fleet-text-white, #fff);
}

/* Status Badge (alternative class name) */
.fleet-manage-reservations-wrapper .status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
}

.fleet-manage-reservations-wrapper .status-badge.confirmed {
    background: #d1f0d1;
    color: #0a5f0a;
}

.fleet-manage-reservations-wrapper .status-badge.pending {
    background: #fff4d1;
    color: #856404;
}

.fleet-manage-reservations-wrapper .status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.fleet-manage-reservations-wrapper .reservation-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.fleet-manage-reservations-wrapper .reservation-info-item {
    display: flex;
    flex-direction: column;
}

.fleet-manage-reservations-wrapper .reservation-info-label {
    color: var(--fleet-text-light, #999);
    font-size: 12px;
    margin-bottom: 4px;
}

.fleet-manage-reservations-wrapper .reservation-info-value {
    color: var(--fleet-text-white, #fff);
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .reservation-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fleet-button-secondary-color, #333);
    text-align: right;
}

.fleet-manage-reservations-wrapper .view-details-btn {
    background: var(--fleet-primary-color, #ffb300);
    color: var(--fleet-text-black, #222);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .view-details-btn:hover {
    background: var(--fleet-button-hover-color, #ffc933);
}

/* ============================================
   RESERVATION DETAILS WRAPPER
   ============================================ */
.fleet-manage-reservations-wrapper .reservation-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--fleet-button-secondary-color, #333);
}

.fleet-manage-reservations-wrapper .reservation-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fleet-manage-reservations-wrapper .info-section {
    background: var(--fleet-background-dark, #121212);
    padding: 20px;
    border-radius: 4px;
}

.fleet-manage-reservations-wrapper .info-section h4 {
    margin-top: 0;
    color: var(--fleet-primary-color, #e0a241);
    border-bottom: 1px solid var(--fleet-button-secondary-color, #333);
    padding-bottom: 10px;
}

/* ============================================
   RESERVATION DETAIL VIEW
   ============================================ */
.fleet-manage-reservations-wrapper .reservation-detail {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #444);
    border-radius: 8px;
    padding: 24px;
}

.fleet-manage-reservations-wrapper .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--fleet-primary-color, #ffb300);
}

.fleet-manage-reservations-wrapper .detail-header h3 {
    color: var(--fleet-primary-color, #ffb300);
    margin: 0;
}

.fleet-manage-reservations-wrapper .back-to-list-btn {
    background: var(--fleet-button-secondary-color, #444);
    color: var(--fleet-text-white, #fff);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .back-to-list-btn:hover {
    background: var(--fleet-button-secondary-color, #555);
}

.fleet-manage-reservations-wrapper .detail-sections {
    display: grid;
    gap: 24px;
}

.fleet-manage-reservations-wrapper .detail-section {
    background: var(--fleet-background-dark, #222);
    border: 1px solid var(--fleet-button-secondary-color, #333);
    border-radius: 6px;
    padding: 20px;
}

.fleet-manage-reservations-wrapper .detail-section h4 {
    color: var(--fleet-primary-color, #ffb300);
    margin: 0 0 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--fleet-button-secondary-color, #444);
    padding-bottom: 8px;
}

.fleet-manage-reservations-wrapper .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.fleet-manage-reservations-wrapper .detail-item {
    display: flex;
    flex-direction: column;
}

.fleet-manage-reservations-wrapper .detail-label {
    color: var(--fleet-text-light, #999);
    font-size: 12px;
    margin-bottom: 4px;
}

.fleet-manage-reservations-wrapper .detail-value {
    color: var(--fleet-text-white, #fff);
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .detail-value.highlight {
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
    font-size: 16px;
}

/* Vehicle Image */
.fleet-manage-reservations-wrapper .vehicle-image {
    margin-bottom: 16px;
}

.fleet-manage-reservations-wrapper .vehicle-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Pricing Breakdown */
.fleet-manage-reservations-wrapper .pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.fleet-manage-reservations-wrapper .pricing-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--fleet-button-secondary-color, #333);
    color: var(--fleet-text-white, #fff);
}

.fleet-manage-reservations-wrapper .pricing-table td:first-child {
    color: var(--fleet-text-light, #ccc);
}

.fleet-manage-reservations-wrapper .pricing-table td:last-child {
    text-align: right;
    font-weight: bold;
}

.fleet-manage-reservations-wrapper .pricing-table .total-row {
    border-top: 2px solid var(--fleet-button-secondary-color, #333);
}

.fleet-manage-reservations-wrapper .pricing-table .total-row td {
    padding-top: 15px;
    font-size: 1.1em;
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
}

/* Actions */
.fleet-manage-reservations-wrapper .detail-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--fleet-button-secondary-color, #333);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.fleet-manage-reservations-wrapper .cancel-reservation-btn {
    background: var(--fleet-color-delete, #f44336);
    color: var(--fleet-text-white, #fff);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.fleet-manage-reservations-wrapper .cancel-reservation-btn:hover {
    background: var(--fleet-color-delete-hover, #d32f2f);
}

.fleet-manage-reservations-wrapper .cancel-reservation-btn:disabled {
    background: var(--fleet-button-secondary-color, #666);
    cursor: not-allowed;
}

.fleet-manage-reservations-wrapper .reservation-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* ============================================
   MESSAGES & ALERTS
   ============================================ */
.fleet-manage-reservations-wrapper .message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.fleet-manage-reservations-wrapper .message.error {
    background: #f443361a;
    border: 1px solid var(--fleet-color-delete, #f44336);
    color: var(--fleet-color-delete, #f44336);
}

.fleet-manage-reservations-wrapper .message.success {
    background: #4caf501a;
    border: 1px solid var(--fleet-success-color, #4caf50);
    color: var(--fleet-success-color, #4caf50);
}

.fleet-manage-reservations-wrapper .message.info {
    background: #2196f31a;
    border: 1px solid #2196f3;
    color: var(--fleet-primary-color, #2196f3);
}

/* ============================================
   LOADING STATES
   ============================================ */
.fleet-manage-reservations-wrapper .loading {
    text-align: center;
    padding: 40px;
    color: var(--fleet-text-light, #ccc);
}

.fleet-manage-reservations-wrapper .loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .fleet-manage-reservations-wrapper .fleetform-manage-reservations {
        padding: 12px;
    }
    
    .fleet-manage-reservations-wrapper .manage-header h2 {
        font-size: 1.5em;
    }
    
    .fleet-manage-reservations-wrapper .reservation-card-body {
        grid-template-columns: 1fr;
    }
    
    .fleet-manage-reservations-wrapper .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fleet-manage-reservations-wrapper .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .fleet-manage-reservations-wrapper .detail-actions {
        flex-direction: column;
    }
    
    .fleet-manage-reservations-wrapper .detail-actions button {
        width: 100%;
    }
}


/* Returning Customer Panel */
.returning-customer-panel {
    background: var(--fleet-background-panel, #1a1a1a) !important;
    border: 1px solid var(--fleet-primary-color, #ffb300) !important;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.returning-customer-panel h4,
.returning-customer-panel h5 {
    color: var(--fleet-primary-color, #ffb300) !important;
    margin-top: 0;
}

.returning-customer-panel h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.returning-customer-panel h5 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--fleet-text-white, #fff) !important;
}

/* Admin/Manager Panel */
.admin-search-panel {
    background: var(--fleet-background-panel, #1a1a1a) !important;
    border: 1px solid var(--fleet-primary-color, #ffb300) !important;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-search-panel h4 {
    color: var(--fleet-primary-color, #ffb300) !important;
    margin-top: 0;
    margin-bottom: 20px;
}

.admin-search-help {
    color: var(--fleet-text-white, #fff) !important;
    margin: 0;
    font-size: 14px;
}

/* Logged In User Success Message */
.user-welcome-panel {
    background: var(--fleet-background-panel, #1a1a1a) !important;
    border: 1px solid var(--fleet-success-color, #4caf50) !important;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.user-welcome-panel p {
    margin: 0;
    color: var(--fleet-text-white, #fff) !important;
}

.user-welcome-panel .welcome-message {
    color: var(--fleet-success-color, #4caf50) !important;
    font-weight: bold;
}

.user-welcome-panel .loading-message {
    color: var(--fleet-text-light, #ccc) !important;
    margin: 8px 0 0 0;
}

.user-welcome-panel a {
    color: var(--fleet-primary-color, #ffb300) !important;
    text-decoration: none;
    font-size: 14px;
}

.user-welcome-panel a:hover {
    text-decoration: underline;
}

/* ============================================
   SIGN-IN FORM
   ============================================ */
.signin-section {
    margin-bottom: 24px;
}

.signin-form {
    max-width: 400px;
}

.signin-form .form-group {
    margin-bottom: 16px;
}

.signin-form label {
    display: block;
    margin-bottom: 4px;
    color: var(--fleet-text-white, #fff) !important;
}

.signin-form input[type="text"],
.signin-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--fleet-button-secondary-color, #555);
    border-radius: 4px;
    background: var(--fleet-background-panel, #2a2a2a) !important;
    color: var(--fleet-text-white, #fff) !important;
}

.signin-form input[type="text"]:focus,
.signin-form input[type="password"]:focus {
    outline: none;
    border-color: var(--fleet-primary-color, #ffb300);
}

.signin-form .remember-me {
    color: var(--fleet-text-light, #ccc) !important;
    display: flex;
    align-items: center;
}

.signin-form .remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.signin-form .submit-btn {
    background: var(--fleet-primary-color, #ffb300) !important;
    color: var(--fleet-text-black, #222) !important;
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

.signin-form .submit-btn:hover {
    background: var(--fleet-button-hover-color, #ffc933) !important;
}

.signin-form .forgot-password {
    margin-top: 12px;
    text-align: center;
}

.signin-form .forgot-password a {
    color: var(--fleet-primary-color, #ffb300) !important;
    font-size: 0.9em;
    text-decoration: none;
}

.signin-form .forgot-password a:hover {
    text-decoration: underline;
}

/* ============================================
   CUSTOMER LOOKUP (DL + Birthday)
   ============================================ */
.customer-lookup-section {
    margin-top: 24px;
}

.lookup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    max-width: 800px;
}

.lookup-field {
    display: flex;
    flex-direction: column;
}

.lookup-field label {
    display: block;
    margin-bottom: 4px;
    color: var(--fleet-text-white, #fff) !important;
}

.lookup-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--fleet-button-secondary-color, #555);
    border-radius: 4px;
    background: var(--fleet-background-panel, #2a2a2a) !important;
    color: var(--fleet-text-white, #fff) !important;
}

.lookup-field input:focus {
    outline: none;
    border-color: var(--fleet-primary-color, #ffb300);
}

.lookup-field input::placeholder {
    color: var(--fleet-text-light, #777) !important;
}

.lookup-btn {
    background: var(--fleet-primary-color, #ffb300) !important;
    color: var(--fleet-text-black, #222) !important;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.lookup-btn:hover {
    background: var(--fleet-button-hover-color, #ffc933) !important;
}

/* Mobile responsive for lookup grid */
@media (max-width: 768px) {
    .lookup-grid {
        grid-template-columns: 1fr;
    }
    
    .lookup-btn {
        width: 100%;
    }
}

/* ============================================
   OR SEPARATOR
   ============================================ */
.or-separator {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.or-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--fleet-button-secondary-color, #444);
}

.or-separator span {
    position: relative;
    background: var(--fleet-background-panel, #1a1a1a);
    padding: 0 16px;
    color: var(--fleet-text-light, #999) !important;
    font-size: 14px;
}

.or-separator.large {
    margin: 32px 0;
}

.or-separator.large span {
    background: var(--fleet-background-dark, #222);
    color: var(--fleet-primary-color, #ffb300) !important;
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   MANUAL LOOKUP FORM
   ============================================ */
.lookup-form {
    background: var(--fleet-background-panel, #1a1a1a) !important;
    border: 1px solid var(--fleet-button-secondary-color, #444);
    border-radius: 8px;
    padding: 24px;
}

.lookup-form h4 {
    color: var(--fleet-primary-color, #ffb300) !important;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--fleet-primary-color, #ffb300) !important;
    font-weight: bold;
}

.form-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--fleet-button-secondary-color, #555);
    border-radius: 4px;
    background: var(--fleet-background-panel, #2a2a2a) !important;
    color: var(--fleet-text-white, #fff) !important;
}

.form-field input:focus {
    outline: none;
    border-color: var(--fleet-primary-color, #ffb300);
}

.form-field input::placeholder {
    color: var(--fleet-text-light, #777) !important;
}

.form-actions {
    text-align: center;
}

.btn {
    background: var(--fleet-primary-color, #ffb300) !important;
    color: var(--fleet-text-black, #222) !important;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: var(--fleet-button-hover-color, #ffc933) !important;
}

.btn:disabled {
    background: var(--fleet-button-secondary-color, #666) !important;
    cursor: not-allowed;
}

/* Mobile responsive for form row */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESERVATION RESULTS SECTION
   ============================================ */
.reservation-results {
    margin-top: 32px;
}

.reservation-results h3 {
    color: var(--fleet-primary-color, #ffb300);
    margin-bottom: 20px;
}

.no-reservations {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #666);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--fleet-text-light, #ccc);
}

.no-reservations p {
    margin: 0;
    font-size: 16px;
}

/* ============================================
   RESERVATION LIST (CARDS)
   ============================================ */
.reservations-list {
    display: grid;
    gap: 20px;
}

.reservation-card {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #444);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reservation-card:hover {
    border-color: var(--fleet-primary-color, #ffb300);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2);
}

.reservation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fleet-button-secondary-color, #333);
}

.reservation-number {
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
    font-size: 18px;
}

.reservation-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.reservation-status.pending {
    background: var(--fleet-accent-color, #ff9800);
    color: var(--fleet-text-black, #000);
}

.reservation-status.confirmed {
    background: var(--fleet-success-color, #4caf50);
    color: var(--fleet-text-white, #fff);
}

.reservation-status.completed {
    background: var(--fleet-primary-color, #2196f3);
    color: var(--fleet-text-white, #fff);
}

.reservation-status.cancelled {
    background: var(--fleet-color-delete, #f44336);
    color: var(--fleet-text-white, #fff);
}

.reservation-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.reservation-info-item {
    display: flex;
    flex-direction: column;
}

.reservation-info-label {
    color: var(--fleet-text-light, #999);
    font-size: 12px;
    margin-bottom: 4px;
}

.reservation-info-value {
    color: var(--fleet-text-white, #fff);
    font-size: 14px;
}

.reservation-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fleet-button-secondary-color, #333);
    text-align: right;
}

.view-details-btn {
    background: var(--fleet-primary-color, #ffb300);
    color: var(--fleet-text-black, #222);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.view-details-btn:hover {
    background: var(--fleet-button-hover-color, #ffc933);
}

/* ============================================
   RESERVATION DETAIL VIEW
   ============================================ */
.reservation-detail {
    background: var(--fleet-background-panel, #1a1a1a);
    border: 1px solid var(--fleet-button-secondary-color, #444);
    border-radius: 8px;
    padding: 24px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--fleet-primary-color, #ffb300);
}

.detail-header h3 {
    color: var(--fleet-primary-color, #ffb300);
    margin: 0;
}

.back-to-list-btn {
    background: var(--fleet-button-secondary-color, #444);
    color: var(--fleet-text-white, #fff);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.back-to-list-btn:hover {
    background: var(--fleet-button-secondary-color, #555);
}

.detail-sections {
    display: grid;
    gap: 24px;
}

.detail-section {
    background: var(--fleet-background-dark, #222);
    border: 1px solid var(--fleet-button-secondary-color, #333);
    border-radius: 6px;
    padding: 20px;
}

.detail-section h4 {
    color: var(--fleet-primary-color, #ffb300);
    margin: 0 0 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--fleet-button-secondary-color, #444);
    padding-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: var(--fleet-text-light, #999);
    font-size: 12px;
    margin-bottom: 4px;
}

.detail-value {
    color: var(--fleet-text-white, #fff);
    font-size: 14px;
}

.detail-value.highlight {
    color: var(--fleet-primary-color, #ffb300);
    font-weight: bold;
    font-size: 16px;
}

/* Vehicle Image */
.vehicle-image {
    margin-bottom: 16px;
}

.vehicle-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--fleet-button-secondary-color, #444);
}

/* Pricing Breakdown */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table tr {
    border-bottom: 1px solid var(--fleet-button-secondary-color, #333);
}

.pricing-table tr:last-child {
    border-bottom: none;
}

.pricing-table td {
    padding: 8px 0;
    color: var(--fleet-text-white, #fff);
}

.pricing-table td:first-child {
    color: var(--fleet-text-light, #ccc);
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: bold;
}

.pricing-table .total-row td {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--fleet-primary-color, #ffb300);
    color: var(--fleet-primary-color, #ffb300);
    font-size: 18px;
    font-weight: bold;
}

/* Actions */
.detail-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--fleet-button-secondary-color, #333);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cancel-reservation-btn {
    background: var(--fleet-color-delete, #f44336);
    color: var(--fleet-text-white, #fff);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.cancel-reservation-btn:hover {
    background: var(--fleet-color-delete-hover, #d32f2f);
}

.cancel-reservation-btn:disabled {
    background: var(--fleet-button-secondary-color, #666);
    cursor: not-allowed;
}

/* ============================================
   MESSAGES & ALERTS
   ============================================ */
.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.message.error {
    background: #f443361a;
    border: 1px solid var(--fleet-color-delete, #f44336);
    color: var(--fleet-color-delete, #f44336);
}

.message.success {
    background: #4caf501a;
    border: 1px solid var(--fleet-success-color, #4caf50);
    color: var(--fleet-success-color, #4caf50);
}

.message.info {
    background: #2196f31a;
    border: 1px solid #2196f3;
    color: var(--fleet-primary-color, #2196f3);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--fleet-text-light, #ccc);
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .fleetform-manage-reservations {
        padding: 12px;
    }
    
    .manage-header h2 {
        font-size: 1.5em;
    }
    
    .reservation-card-body {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions button {
        width: 100%;
    }
    
    .fleet-manage-reservations-wrapper .reservation-info {
        grid-template-columns: 1fr;
    }
    
    .fleet-manage-reservations-wrapper .reservation-actions {
        flex-direction: column;
    }
    
    .fleet-manage-reservations-wrapper .reservation-actions button {
        width: 100%;
    }
}
