﻿:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    color: white;
}

.filter-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

    .filter-title i {
        margin-right: 0.5rem;
        color: var(--primary-color);
    }

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-select, .form-control {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .form-select:focus, .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.filter-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

    .filter-checkbox .form-check {
        margin: 0;
    }

.form-check-input {
    border-radius: 6px;
    border: 2px solid var(--border-color);
    width: 1.25rem;
    height: 1.25rem;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-left: 0.5rem;
}

#filterForm .d-flex.gap-2.justify-content-end {
    margin-top: 20px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-outline-custom:hover {
        background: var(--primary-color);
        color: white;
    }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-count {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.sort-select {
    width: auto;
    min-width: 300px;
}

.car-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .car-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

.car-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-year-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.car-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-brand {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.car-title {
    font-size: 1rem;
    font-weight: 500;
    color: rgb(57, 74, 102);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.car-title2 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.car-spec-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dark);
}

    .car-spec-item i {
        margin-right: 0.5rem;
        color: var(--primary-color);
        font-size: 1rem;
    }

.car-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-view-history {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    float: right;
}

    .btn-view-history:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }

.pagination {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

    .pagination .page-link {
        border-radius: 10px;
        margin: 0 0.25rem;
        border: 1px solid var(--border-color);
        color: var(--primary-color);
        font-weight: 500;
        padding: 0.75rem 1.25rem;
    }

        .pagination .page-link:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border: none;
    }

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

    .no-results i {
        font-size: 4rem;
        color: var(--text-light);
        margin-bottom: 1rem;
    }

    .no-results h3 {
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }

    .no-results p {
        color: var(--text-light);
    }

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

    .view-toggle .btn {
        padding: 0.5rem 1rem;
        border: 1px solid rgba(255,255,255,0.2);
        background: rgba(255,255,255,0.05);
        color: #fff;
        transition: all 0.3s ease;
    }

        .view-toggle .btn:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.3);
        }

        .view-toggle .btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            color: #fff !important;
        }

    .view-toggle .btn {
        color: var(--primary-color);
    }
/* ✅ List View Styles */
.list-view-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

    .list-view-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        border-color: rgba(102, 126, 234, 0.5);
    }

.list-view-image {
    width: 300px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.list-view-content {
    flex: 1;
}

.list-view-specs {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* ✅ Table View Styles - DÜZELTİLMİŞ */
.table-view {
    background: white; /* ✅ Beyaz arka plan */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

    .table-view table {
        width: 100%;
        margin: 0;
    }

    .table-view th {
        /*background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);*/ /* ✅ Gradient header */
        color: var(--bs-body-color); /* ✅ Beyaz yazı */
        padding: 1rem;
        font-weight: 600;
        text-align: left;
        border-bottom: 2px solid var(--primary-color);
    }

    .table-view td {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color); /* ✅ Gri border */
        color: var(--text-dark); /* ✅ Koyu gri yazı */
        vertical-align: middle;
    }

    .table-view tbody tr {
        transition: all 0.3s ease;
    }

        .table-view tbody tr:hover {
            background: rgba(102, 126, 234, 0.05); /* ✅ Hafif mor hover */
        }

        .table-view tbody tr:last-child td {
            border-bottom: none;
        }

    .table-view img {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .table-view small {
        color: var(--text-light);
        font-size: 0.85rem;
    }

    .table-view .text-success {
        color: #28a745 !important;
        font-weight: 600;
    }

    .table-view .text-muted {
        color: var(--text-light) !important;
    }

    .table-view .btn-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border: none;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .table-view .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        }

/* Mobile responsiveness */

@media (min-width: 1200px) {
    .h3, h3 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 991px) {
    .table-view {
        overflow-x: auto;
    }

        .table-view table {
            min-width: 800px;
        }
}

@media (max-width: 576px) {
    .view-toggle {
        display: none;
    }

    .page-header {
        margin-bottom: 0;
    }

    .filter-card {
        padding: 0;
    }

    .table-view th,
    .table-view td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .table-view img {
        width: 60px;
        height: 45px;
    }
}
