/* Custom CSS for Dealer Motor Application */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 76px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.product-card {
    border: 1px solid #e0e0e0;
    height: 100%;
}

.product-card .card-img-top {
    transition: transform 0.3s;
    height: 200px;
    object-fit: cover;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    margin-top: 20px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-lg {
    padding: 12px 30px;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-outline-success:hover {
    background-color: #198754;
    color: white;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    color: #212529;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #0d6efd;
    color: white;
    border: none;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 10px;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.dashboard-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Status badges */
.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-diproses {
    background-color: #cce5ff;
    color: #004085;
}

.status-selesai {
    background-color: #d4edda;
    color: #155724;
}

.status-dibatalkan {
    background-color: #f8d7da;
    color: #721c24;
}

.status-menunggu {
    background-color: #fff3cd;
    color: #856404;
}

/* Price tag */
.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #198754;
}

/* Admin sidebar */
.sidebar {
    min-height: calc(100vh - 76px);
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    padding: 0;
}

.sidebar .nav-link {
    color: #ecf0f1;
    padding: 15px 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid #3498db;
    color: white;
}

.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid #3498db;
    color: white;
}

/* Login/Register Pages */
.auth-container {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    max-width: 500px;
    width: 100%;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Product Detail */
.product-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Booking Calendar */
.booking-calendar {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
    
    body {
        padding-top: 66px;
    }
}

/* Animation for cards */
.hover-card {
    cursor: pointer;
}

/* Statistics Cards */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    color: white;
    text-align: center;
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Action Buttons */
.btn-action {
    padding: 5px 10px;
    margin: 2px;
}

/* Image Preview */
.img-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    display: block;
    margin-bottom: 10px;
}