/* MotorRent Manager Frontend Styles */

/* ============================================
   PAGE LOADER - MOTORBIKE ANIMATION
   ============================================ */
.mrm-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

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

.mrm-loader-overlay:not(.mrm-loader-hidden) {
    pointer-events: all;
}

.mrm-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    max-width: 90vw;
}

.mrm-loader-animation {
    width: 60px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
    padding: 10px;
    /* Add padding inside to prevent SVG from being cut off */
}

.mrm-loader-animation svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: none;
    /* Keep centered */
}

.mrm-loader-text {
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    letter-spacing: 1px;
    animation: mrm-loader-pulse 1.5s ease-in-out infinite;
}

.mrm-loader-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 0px;
}

.mrm-loader-dots span {
    width: 8px;
    height: 8px;
    background: #0073aa;
    border-radius: 50%;
    animation: mrm-dot-bounce 1.4s ease-in-out infinite both;
}

.mrm-loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.mrm-loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.mrm-loader-dots span:nth-child(3) {
    animation-delay: 0s;
}

.mrm-loader-progress {
    width: 120px;
    height: 2px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 3px;
}

.mrm-loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    border-radius: 2px;
    width: 0%;
    animation: mrm-progress-load 2s ease-in-out infinite;
}

/* Dark Variant */
.mrm-loader-overlay.mrm-loader-dark {
    background: #1a1a2e;
}

.mrm-loader-overlay.mrm-loader-dark .mrm-loader-text {
    color: #ffffff;
}

.mrm-loader-overlay.mrm-loader-dark .mrm-loader-dots span {
    background: #ffffff;
}

.mrm-loader-overlay.mrm-loader-dark .mrm-loader-progress {
    background: #444;
}

/* ============================================
   RESPONSIVE LOADER
   ============================================ */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .mrm-loader-animation {
        width: 55px;
        height: 55px;
        padding: 8px;
    }
    .mrm-loader-text {
        font-size: 13px;
    }
    .mrm-loader-progress {
        width: 110px;
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .mrm-loader-animation {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
    .mrm-loader-text {
        font-size: 12px;
    }
    .mrm-loader-dots span {
        width: 7px;
        height: 7px;
        gap: 5px;
    }
    .mrm-loader-progress {
        width: 100px;
        height: 2px;
    }
    .mrm-loader-container {
        gap: 8px;
        padding: 20px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .mrm-loader-animation {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
    .mrm-loader-text {
        font-size: 11px;
    }
    .mrm-loader-dots span {
        width: 6px;
        height: 6px;
        gap: 4px;
    }
    .mrm-loader-progress {
        width: 80px;
        height: 1.5px;
    }
    .mrm-loader-container {
        gap: 6px;
        padding: 15px;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .mrm-loader-animation {
        width: 35px;
        height: 35px;
        padding: 5px;
    }
    .mrm-loader-text {
        font-size: 10px;
    }
    .mrm-loader-dots span {
        width: 5px;
        height: 5px;
        gap: 3px;
    }
    .mrm-loader-progress {
        width: 60px;
        height: 1.5px;
    }
    .mrm-loader-container {
        gap: 5px;
        padding: 10px;
    }
}

/* Animations */
@keyframes mrm-loader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes mrm-dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes mrm-progress-load {
    0% { width: 0%; transform: translateX(0); }
    50% { width: 70%; transform: translateX(0); }
    100% { width: 100%; transform: translateX(0); }
}

/* ============================================
   SEARCH FORM
   ============================================ */
.mrm-search-container {
    margin: 20px 0;
}

.mrm-search-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mrm-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.mrm-search-field {
    display: flex;
    flex-direction: column;
}

.mrm-search-field label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.mrm-required {
    color: #dc3545;
    margin-left: 3px;
}

.mrm-search-field select,
.mrm-search-field input {
    padding: 10px 12px;
    border: 2px solid #e2e4e7;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mrm-search-field select:focus,
.mrm-search-field input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.15);
}

.mrm-field-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.mrm-search-field select.error,
.mrm-search-field input.error {
    border-color: #dc3545;
}

/* Centered Search Button */
.mrm-search-submit-wrapper {
    display: grid;
    place-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.mrm-search-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    min-width: 250px;
    transition: background 0.3s, transform 0.2s;
}

.mrm-search-button:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.mrm-search-button:active {
    transform: translateY(0);
}

.mrm-search-tips {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.mrm-tip {
    font-size: 13px;
    color: #6c757d;
}

/* ============================================
   VEHICLE RESULTS
   ============================================ */
.mrm-results-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.mrm-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.mrm-results-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.mrm-results-location,
.mrm-results-dates {
    margin: 4px 0;
    font-size: 15px;
    color: #6c757d;
}

.mrm-results-actions {
    margin-top: 5px;
}

.mrm-back-button {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.mrm-back-button:hover {
    background: #e9ecef;
}

.mrm-results-count {
    margin-bottom: 20px;
    font-size: 15px;
    color: #6c757d;
}

.mrm-count-number {
    font-weight: 700;
    font-size: 18px;
    color: #1d2327;
}

.mrm-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

/* ============================================
   VEHICLE CARD
   ============================================ */
.mrm-vehicle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mrm-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.mrm-vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.mrm-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle Badge with SVG Icon */
.mrm-vehicle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mrm-vehicle-badge .mrm-vehicle-icon {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

.mrm-vehicle-content {
    padding: 16px 20px 20px;
}

.mrm-vehicle-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.mrm-vehicle-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6c757d;
}

.mrm-vehicle-specs span {
    background: #f8f9fa;
    padding: 2px 10px;
    border-radius: 12px;
}

.mrm-vehicle-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mrm-feature-tag {
    font-size: 12px;
    color: #28a745;
}

.mrm-feature-more {
    color: #6c757d;
}

.mrm-vehicle-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 14px;
}

.mrm-vehicle-daily-rate {
    font-size: 15px;
}

.mrm-rate-amount {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.mrm-per-day {
    color: #6c757d;
    font-size: 13px;
}

.mrm-vehicle-total {
    text-align: right;
}

.mrm-vehicle-total strong {
    font-size: 20px;
    color: #0073aa;
    display: block;
}

.mrm-total-days {
    font-size: 12px;
    color: #6c757d;
}

.mrm-vehicle-actions {
    display: flex;
    gap: 10px;
}

.mrm-vehicle-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.mrm-reserve-button {
    background: #0073aa;
    color: #fff;
}

.mrm-reserve-button:hover {
    background: #005a87;
    color: #fff;
}

.mrm-details-button {
    background: #f8f9fa;
    color: #333;
}

.mrm-details-button:hover {
    background: #e9ecef;
}

/* ============================================
   NO VEHICLES MESSAGE
   ============================================ */
.mrm-no-vehicles {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mrm-no-vehicles-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mrm-no-vehicles h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.mrm-no-vehicles p {
    color: #6c757d;
    margin-bottom: 20px;
}

.mrm-suggestions {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    margin-bottom: 20px;
}

.mrm-suggestions li {
    padding: 4px 0;
    color: #6c757d;
}

.mrm-suggestions li::before {
    content: "• ";
    color: #0073aa;
}

.mrm-search-again {
    display: inline-block;
    padding: 10px 30px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.mrm-search-again:hover {
    background: #005a87;
    color: #fff;
}

/* ============================================
   RESERVATION INFO
   ============================================ */
.mrm-reservation-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.mrm-info-box {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.mrm-info-box h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.mrm-info-box p {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 14px;
}

.mrm-info-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mrm-info-features span {
    font-size: 13px;
    color: #28a745;
}

/* ============================================
   VEHICLE DETAILS PAGE
   ============================================ */
.mrm-vehicle-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.mrm-vehicle-details-image img {
    width: 100%;
    border-radius: 8px;
}

.mrm-vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.mrm-vehicle-header h1 {
    margin: 0;
    font-size: 28px;
}

.mrm-vehicle-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f0f9;
    color: #0073aa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.mrm-vehicle-type-badge .mrm-vehicle-icon {
    width: 20px;
    height: 20px;
}

.mrm-vehicle-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin: 15px 0;
}

.mrm-vehicle-description {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.mrm-vehicle-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

.mrm-vehicle-features ul li {
    padding: 4px 0;
    font-size: 14px;
}

.mrm-vehicle-pricing-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.mrm-vehicle-price-total {
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
}

.mrm-availability-status {
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

.mrm-reserve-now-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.mrm-reserve-now-button:hover {
    background: #005a87;
    color: #fff;
}

.mrm-reserve-now-button.mrm-disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* ============================================
   RESERVATION FORM
   ============================================ */
.mrm-reservation-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.mrm-reservation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.mrm-reservation-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.mrm-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 700;
}

.mrm-reservation-vehicle-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.mrm-reservation-vehicle {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mrm-reservation-vehicle h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.mrm-reservation-vehicle-details {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.mrm-reservation-vehicle-details .mrm-vehicle-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.mrm-reservation-location {
    margin: 3px 0;
    font-size: 14px;
    color: #6c757d;
}

.mrm-reservation-dates {
    margin: 3px 0;
    font-size: 14px;
    font-weight: 600;
}

.mrm-form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.mrm-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mrm-section-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.mrm-section-desc {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6c757d;
}

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

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

.mrm-form-field label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.mrm-form-field input,
.mrm-form-field textarea {
    padding: 10px 12px;
    border: 2px solid #e2e4e7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mrm-form-field input:focus,
.mrm-form-field textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.mrm-form-field input.mrm-invalid,
.mrm-form-field textarea.mrm-invalid {
    border-color: #dc3545;
}

/* License Upload */
.mrm-license-upload {
    margin-top: 6px;
}

.mrm-license-dropzone {
    position: relative;
    border: 2px dashed #e2e4e7;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.mrm-license-dropzone:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.mrm-license-dropzone.dragover {
    border-color: #0073aa;
    background: #e3f0f9;
}

.mrm-license-placeholder {
    pointer-events: none;
}

.mrm-upload-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.mrm-license-placeholder p {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 500;
}

.mrm-license-hint {
    font-size: 13px;
    color: #6c757d;
}

.mrm-license-preview {
    display: none;
    margin-bottom: 10px;
}

.mrm-license-preview img {
    max-height: 200px;
    border-radius: 4px;
}

.mrm-license-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mrm-upload-progress {
    margin-top: 10px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.mrm-progress-bar {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s;
}

.mrm-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.mrm-license-status {
    margin-top: 8px;
    font-size: 14px;
}

.mrm-license-status .mrm-success {
    color: #28a745;
}

.mrm-license-status .mrm-error {
    color: #dc3545;
}

.mrm-license-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

.mrm-license-filename {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}

/* Terms & Conditions */
.mrm-terms-container {
    margin-top: 6px;
}

.mrm-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 5px 0;
}

.mrm-terms-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mrm-terms-text {
    font-size: 14px;
    line-height: 1.6;
}

.mrm-terms-link {
    color: #0073aa;
    text-decoration: underline;
}

.mrm-terms-link:hover {
    color: #005a87;
}

.mrm-form-actions {
    margin-top: 20px;
}

.mrm-submit-button {
    width: 100%;
    padding: 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.mrm-submit-button:hover {
    background: #005a87;
}

.mrm-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mrm-submit-button.mrm-loading {
    position: relative;
    color: transparent;
}

.mrm-submit-button.mrm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mrm-spin 0.8s linear infinite;
}

@keyframes mrm-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.mrm-form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* ============================================
   RESERVATION SIDEBAR
   ============================================ */
.mrm-reservation-sidebar {
    position: sticky;
    top: 30px;
}

.mrm-sidebar-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.mrm-sidebar-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.mrm-sidebar-vehicle {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.mrm-sidebar-vehicle img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.mrm-sidebar-vehicle-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.mrm-sidebar-vehicle-info .mrm-vehicle-type {
    font-size: 13px;
    color: #6c757d;
}

.mrm-sidebar-details {
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 12px;
}

.mrm-sidebar-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.mrm-sidebar-label {
    color: #6c757d;
}

.mrm-sidebar-value {
    font-weight: 500;
}

.mrm-sidebar-total {
    font-weight: 600;
    font-size: 16px;
}

.mrm-sidebar-pricing {
    margin-bottom: 12px;
}

.mrm-sidebar-pricing .mrm-sidebar-row {
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 0;
}

.mrm-sidebar-pricing .mrm-sidebar-row:last-child {
    border-bottom: none;
}

.mrm-sidebar-pricing .mrm-sidebar-total {
    font-size: 18px;
    border-bottom: 2px solid #0073aa !important;
    padding: 8px 0 !important;
}

.mrm-sidebar-pricing .mrm-sidebar-total .mrm-sidebar-value {
    color: #0073aa;
    font-size: 20px;
}

.mrm-sidebar-total-final {
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
}

.mrm-total-row {
    font-size: 18px;
    font-weight: 700;
}

.mrm-total-row .mrm-sidebar-value {
    color: #0073aa;
    font-size: 20px;
}

.mrm-sidebar-security {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.mrm-sidebar-security p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrm-security-icon {
    font-size: 16px;
}

/* ============================================
   MY RENTALS
   ============================================ */
.mrm-rental-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.mrm-rental-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mrm-rental-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f8f9fa;
}

.mrm-rental-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 20px;
}

.mrm-rental-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.mrm-rental-pay-button {
    display: inline-block;
    padding: 8px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.mrm-rental-pay-button:hover {
    background: #218838;
    color: #fff;
}

/* ============================================
   STATUS COLORS
   ============================================ */
.mrm-status-pending_payment {
    background: #fff3cd;
    color: #856404;
}

.mrm-status-reserved {
    background: #cce5ff;
    color: #004085;
}

.mrm-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.mrm-status-picked_up {
    background: #d1ecf1;
    color: #0c5460;
}

.mrm-status-active_rental {
    background: #cce5ff;
    color: #004085;
}

.mrm-status-completed {
    background: #d4edda;
    color: #155724;
}

.mrm-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.mrm-status-expired {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .mrm-reservation-grid {
        grid-template-columns: 1fr;
    }
    
    .mrm-reservation-sidebar {
        position: static;
    }
    
    .mrm-vehicle-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mrm-search-fields {
        grid-template-columns: 1fr;
    }
    
    .mrm-search-submit-wrapper {
        display: block;
    }
    
    .mrm-search-button {
        width: 100%;
        min-width: unset;
    }
    
    .mrm-search-tips {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .mrm-vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .mrm-vehicle-actions {
        flex-direction: column;
    }
    
    .mrm-vehicle-details-grid {
        grid-template-columns: 1fr;
    }
    
    .mrm-vehicle-meta {
        grid-template-columns: 1fr;
    }
    
    .mrm-vehicle-features ul {
        grid-template-columns: 1fr;
    }
    
    .mrm-vehicle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mrm-reservation-form-wrapper {
        padding: 20px;
    }
    
    .mrm-form-row {
        grid-template-columns: 1fr;
    }
    
    .mrm-form-title {
        font-size: 20px;
    }
    
    .mrm-reservation-vehicle {
        flex-direction: column;
        text-align: center;
    }
    
    .mrm-rental-details {
        grid-template-columns: 1fr;
    }
    
    .mrm-results-header {
        flex-direction: column;
    }
    
    .mrm-results-actions {
        margin-top: 10px;
    }
    
    .mrm-info-features {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .mrm-search-form {
        padding: 15px;
    }
    
    .mrm-search-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .mrm-results-title {
        font-size: 22px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .mrm-search-form,
    .mrm-vehicle-actions,
    .mrm-rental-actions {
        display: none !important;
    }
    
    .mrm-vehicle-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .mrm-vehicle-image {
        height: 150px !important;
    }
    
    /* Hide loader on print */
    .mrm-loader-overlay {
        display: none !important;
    }
}