/* Custom Styles for GadiPeChalo Car Rental */

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.required-field::after {
    content: " *";
    color: red;
}

.btn-primary {
    background-color: #4361ee;
    border-color: #4361ee;
    padding: 8px 25px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #3a56d4;
    border-color: #3a56d4;
}

.btn-success {
    background-color: #2ec4b6;
    border-color: #2ec4b6;
}

.preview-image {
    max-width: 150px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.booking-table th {
    background-color: #4361ee;
    color: white;
    white-space: nowrap;
}

.booking-table td {
    vertical-align: middle;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

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

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

.action-buttons .btn {
    padding: 4px 10px;
    font-size: 0.85rem;
    margin: 2px;
}

.search-box {
    max-width: 300px;
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .booking-table {
        font-size: 0.85rem;
    }
    
    .action-buttons .btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}

.alert {
    border-radius: 8px;
}

.modal-content {
    border-radius: 10px;
}

.modal-header {
    border-radius: 10px 10px 0 0;
}

.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading.show {
    display: flex;
}