/* Custom styles for Akasya Rent a Car - Clean & Simple Design */

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

/* Card hover effects */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Car image styling */
.car-image {
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.car-image:hover {
    transform: scale(1.02);
}

/* Booking form enhancements */
.booking-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

/* Status badges custom colors */
.badge.bg-rental {
    background-color: #3b82f6 !important;
}

.badge.bg-reservation {
    background-color: #8b5cf6 !important;
}

/* Admin panel styling */
.admin-card {
    border-left: 4px solid #3b82f6;
}

/* Primary button clean theme */
.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.admin-sidebar {
    background: var(--bs-dark);
    min-height: 100vh;
}

/* Revenue chart container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

/* File upload styling */
.file-upload {
    border: 2px dashed var(--bs-border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: var(--bs-primary);
}

.file-upload.drag-over {
    border-color: var(--bs-success);
    background-color: rgba(var(--bs-success-rgb), 0.1);
}

/* Price display styling */
.price-display {
    font-size: 1.5rem;
    color: #22c55e;
    font-weight: bold;
}

.price-calculation {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Navigation enhancements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: #374151;
}

.navbar-nav .nav-link {
    font-weight: 400;
    color: #6b7280;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #3b82f6 !important;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Success/Error message styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
}

.btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

/* Table improvements */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f9fafb;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Form improvements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--bs-border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section {
        border-radius: 0 0 25px 25px;
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Car detail page specific styles */
.car-detail-image {
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.car-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.feature-item i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

/* Profile page styles */
.profile-header {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
    padding: 2rem;
}

.booking-history-item {
    border-left: 4px solid #3b82f6;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.booking-history-item:hover {
    border-left-color: #2563eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Admin dashboard specific styles */
.admin-stat-card {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-quick-action {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    color: #374151;
}

.admin-quick-action:hover {
    background: #f3f4f6;
    color: #3b82f6;
    border-color: #d1d5db;
}

/* Car Animation */
.car-animation {
    position: relative;
    display: inline-block;
}

.car-animation i {
    animation: carDrive 3s ease-in-out infinite;
    display: block;
}

.road-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #e5e7eb 50%, transparent 50%);
    background-size: 20px 4px;
    margin: 20px auto 0;
    animation: roadMove 1s linear infinite;
}

@keyframes carDrive {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(10px) rotate(2deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(-10px) rotate(-2deg); }
}

@keyframes roadMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Review Cards */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    animation: fadeInUp 0.6s ease forwards;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

.stars {
    font-size: 1.2rem;
}

.reviewer img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section animations */
.hero-title {
    animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: slideInLeft 1s ease-out 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Button hover improvements */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Statistics section */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    transition: transform 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.1);
}

/* Counter animation */
.stat-item h3 {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] {
    .hero-section {
        background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    }
    
    .booking-form {
        background: var(--bs-gray-800);
    }
    
    .feature-item {
        background: rgba(var(--bs-success-rgb), 0.2);
    }
    
    .admin-quick-action {
        background: var(--bs-gray-800);
        color: var(--bs-light);
    }
    
    .admin-quick-action:hover {
        background: var(--bs-primary);
        color: white;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .pagination {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}
