:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-color: #343a40;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --hover-color: #218838;
}

body.theme-green {
    --primary-color: #28a745;
    --hover-color: #218838;
}

body.theme-blue {
    --primary-color: #007bff;
    --hover-color: #0069d9;
}

body.theme-purple {
    --primary-color: #6f42c1;
    --hover-color: #5e35b1;
}

body.theme-orange {
    --primary-color: #fd7e14;
    --hover-color: #e96b02;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
    border: none;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: none;
}

.card-body {
    padding: 20px;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quote-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.quote-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-expired {
    background-color: #f8d7da;
    color: #721c24;
}

.quote-details {
    margin-bottom: 15px;
}

.quote-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

    .quote-detail-item:last-child {
        border-bottom: none;
    }

.quote-detail-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.quote-detail-value {
    font-weight: 600;
}

.quote-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-download-pdf {
    background-color: #dc3545;
    color: white;
    transition: background-color 0.2s;
}

    .btn-download-pdf:hover {
        background-color: #c82333;
        color: white;
    }

.empty-state {
    text-align: center;
    padding: 60px 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-header {
    padding: 15px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-header h1 {
    color: #2c3e50;
    letter-spacing: -0.3px;
    font-size: 1.5rem;
    margin: 0;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.icon-circle i {
    font-size: 1.2rem;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.bg-success-subtle {
    background-color: rgba(var(--bs-success-rgb), 0.1);
}

.bg-danger-subtle {
    background-color: rgba(var(--bs-danger-rgb), 0.1);
}

/* Dropdown menu stilleri */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 280px;
    margin-top: 10px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #f1f4f9;
}

.dropdown-divider {
    margin: 0.25rem 0;
    opacity: 0.1;
}

.quote-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* İkonun küçülmesini engelle */
    margin-right: 12px !important; /* Sağ tarafta daha fazla boşluk */
}

.quote-icon i {
    font-size: 1.1rem;
}

.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.15em;
}

.search-filters {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .quote-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .quote-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Loader Animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 0 auto;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Filtre konteyner stilleri */
.filters-container {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filters-container .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
}

.filters-container .card-header h5 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.filters-container .card-body {
    padding: 20px;
    background-color: #ffffff;
}

.filters-container .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.filters-container .input-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.filters-container .input-group:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.filters-container .input-group-text {
    border: none;
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding: 0.5rem 0.75rem;
}

.filters-container .form-select {
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #495057;
}

.filters-container .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Filtre özeti stili */
#filterSummary {
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.95rem;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Kart başlık renkleri */
.card-header-health {
    background-color: #28a745 !important;
}

.card-header-traffic {
    background-color: #007bff !important;
}

.card-header-casco {
    background-color: #dc3545 !important;
}

.card-header-default {
    background-color: #6c757d !important;
}

/* Buton stilleri */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Pagination stilleri */
.pagination .page-link {
    border-radius: 4px;
    margin: 0 3px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Custom animation for quote cards */
.quote-appear {
    animation: quoteAppear 0.5s ease-out;
}

@keyframes quoteAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Quote Card Styles for New Format */
.quote-list-header {
    display: flex;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.header-company {
    flex: 2;
}

.header-premium, .header-proposal {
    flex: 1;
    text-align: right;
}

.quote-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.company-info {
    display: flex;
    align-items: center;
    flex: 2;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
}

.company-name {
    font-weight: 500;
}

.quote-premium {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.quote-proposal-no {
    flex: 1;
    text-align: right;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.quote-summary-item {
    margin-bottom: 5px;
}

.summary-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-right: 5px;
}

.summary-value {
    font-weight: 600;
}

    .summary-value.highlight {
        color: var(--primary-color);
        font-size: 1.1rem;
    }

/* Card için özel düzenleme */
.col-md-12.quote-appear {
    animation: quoteAppear 0.5s ease-out;
    margin-bottom: 20px;
}

/* Mobil görünüm düzenlemeleri */
@media (max-width: 768px) {
    .quote-list-header {
        display: none; /* Başlıkları mobilde gizle */
    }

    .quote-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .company-info {
        margin-bottom: 10px;
        width: 100%;
    }

    .quote-premium, .quote-proposal-no {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

        .quote-premium::before {
            content: "Prim: ";
            font-weight: normal;
            color: var(--secondary-color);
        }

        .quote-proposal-no::before {
            content: "Teklif No: ";
            font-weight: normal;
        }
}
/* Ürün türüne göre renk sınıfları */
.card-header-health {
    background: linear-gradient(90deg,rgba(42, 155, 80, 1) 0%, rgba(61, 224, 132, 1) 58%, rgba(142, 237, 83, 1) 100%) !important; /* Sağlık için yeşil */
    color: white;
}


.card-header-traffic {
    background: linear-gradient(90deg,rgba(28, 109, 163, 1) 0%, rgba(61, 194, 224, 1) 58%, rgba(83, 204, 237, 1) 100%) !important; /* Trafik için mavi */
    color: white;
}


.card-header-casco {
    background-color: #dc3545 !important; /* Kasko için kırmızı */
    color: white;
}

.card-header-default {
    background-color: #6c757d !important; /* Diğer ürünler için gri */
    color: white;
}
