:root {
    --primary-color: #FF8006;
    --secondary-color: #f8f9fa;
    --accent-color: #FF8006;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Tedarikçi Grup Kutusu */
.tedarikci-grup {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

    .tedarikci-grup:hover {
        box-shadow: var(--hover-shadow);
    }

/* Tedarikçi Başlık Alanı */
.tedarikci-baslik {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.tedarikci-icerik {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tedarikci-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

    .logo-placeholder i {
        font-size: 24px;
        color: var(--text-light);
        transition: var(--transition);
    }

.tedarikci-grup:hover .logo-placeholder {
    border-color: var(--accent-color);
}

    .tedarikci-grup:hover .logo-placeholder i {
        color: var(--accent-color);
        transform: scale(1.1);
    }

.tedarikci-bilgi {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tedarikci-adi {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
    transition: var(--transition);
}

.tedarikci-grup:hover .tedarikci-adi {
    color: var(--accent-color);
}

.teklif-talep-wrapper {
    margin-bottom: 2rem !important;
    margin-top: 2rem !important;
    z-index: 1;
    position: relative;
}

.tedarikci-git-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--accent-color);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

    .tedarikci-git-btn:hover {
        background-color: var(--accent-color);
        color: var(--white);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 128, 6, 0.3);
    }

/* Ürünler Tablosu */
.urunler-tablosu {
    background-color: var(--white);
}

.urun-satiri {
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

    .urun-satiri:hover {
        background-color: #fafafa;
    }

.urun-satiri h5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urun-data {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.urun-resim {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.quantity-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
}

    .quantity-btn:hover {
        background-color: var(--accent-color);
        color: white;
    }

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    padding: 8px 4px;
}

/* Açıklama Alanı */
.aciklama-alani {
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .aciklama-alani.acik {
        max-height: 200px;
        padding: 15px 20px;
    }

.aciklama-textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
    padding: 10px;
    font-size: 14px;
}

.aciklama-toggle {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    margin-top: 5px;
    transition: var(--transition);
}

    .aciklama-toggle:hover {
        background-color: #f0f0f0;
        border-radius: 4px;
    }

/* Hata mesajı için özel stil */
.text-danger.small.mt-2 {
    display: block;
    margin-top: 8px !important;
    padding: 5px 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-weight: 500;
}

/* Ürün bilgilerinde uyarı mesajı */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
    max-width: 280px;
}

.alert-warning i {
    color: #f39c12;
}

/* Teklif Formu */
.teklif-formu {
    position: sticky;
    top: 6rem;
    z-index: 10;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 0.2rem rgba(255, 128, 6, 0.25);
    }

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: var(--transition);
}

    .btn-primary:hover {
        background-color: #e6720a;
        border-color: #e6720a;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 128, 6, 0.3);
    }

.btn-danger-soft {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

    .btn-danger-soft:hover {
        background-color: #dc3545;
        border-color: #dc3545;
        color: white;
    }

.text-accent {
    color: var(--accent-color) !important;
}

/* Login Prompt Styles */
.login-prompt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    min-height: 70vh; /* Make it take up some vertical space */
}

.login-prompt-box {
    background-color: #ffffff;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.login-prompt-icon {
    font-size: 3rem; /* fa-3x */
    color: #FF8006; /* primary color from previous code */
    margin-bottom: 1.5rem; /* mb-4 */
}

.login-prompt-title {
    font-weight: 700; /* fw-bold */
    color: #212529; /* text-dark */
    margin-bottom: 1rem; /* mb-3 */
    font-size: 1.75rem;
}

.login-prompt-text {
    color: #6c757d; /* text-muted */
    margin-bottom: 1.5rem; /* mb-4 */
    font-size: 1rem;
    line-height: 1.5;
}

.login-prompt-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* For smaller screens */
}

.login-prompt-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem; /* btn-lg px-4 */
    border-radius: 50rem; /* rounded-pill */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.login-prompt-button i {
    margin-right: 0.25rem;
}

.login-prompt-button.primary {
    background-color: #FF8006; /* btn-primary */
    color: white;
    box-shadow: 0 4px 6px rgba(255, 128, 6, 0.2);
}

.login-prompt-button.primary:hover {
    background-color: #e67100;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 128, 6, 0.25);
}

.login-prompt-button.secondary {
    background-color: transparent;
    color: #6c757d; /* btn-outline-secondary color */
    border-color: #6c757d;
}

.login-prompt-button.secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Responsive düzenlemeler */

/* Medium screens (Tablets, landscape) - Where columns stack */
@media (max-width: 991.98px) {
    .teklif-formu {
        position: static; /* Remove sticky position */
        top: auto;
        margin-top: 2rem; /* Add space between stacked columns */
    }

    .urun-data {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }
}

/* Small screens (Tablets, portrait & Phones) */
@media (max-width: 767.98px) {
    /* --- Supplier Header --- */
    .tedarikci-baslik {
        padding: 1rem;
    }
    .tedarikci-icerik {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    .tedarikci-bilgi {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    .tedarikci-adi {
        font-size: 1.1rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* --- Product List --- */
    /* Hide the main table header for each supplier */
    .tedarikci-grup > .table.table-hover {
        display: none;
    }

    /* Style each product as a card */
    .urunler-tablosu {
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .urunler-tablosu:last-of-type {
        border-bottom: none;
    }
    .urunler-tablosu .table {
        margin: 0 !important;
    }

    /* Use flexbox to stack table cells */
    .urunler-tablosu .urun-satiri {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .urunler-tablosu .urun-satiri > td {
        display: block; /* Override table-cell display */
        border: none;
        padding: 0;
        width: 100%;
        flex: 1 0 100%;
    }

    /* Product info cell */
    .urunler-tablosu .urun-satiri > td:first-child .d-flex {
        align-items: flex-start !important;
    }
    .urun-resim {
        width: 65px !important;
        height: 65px !important;
    }

    /* Controls cell */
    .urunler-tablosu .urun-satiri > td:last-child {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
        text-align: left !important;
    }

    /* Space out controls */
    .urunler-tablosu .urun-satiri > td:last-child > .d-flex {
        justify-content: space-between !important;
        align-items: center !important;
    }

    .urun-data {
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
    }
    
    .aciklama-toggle {
        margin-top: 1rem;
        width: 100%;
        padding: 0.75rem;
        background-color: #f8f9fa;
        border-radius: 6px;
        text-align: center;
    }
    .aciklama-toggle:hover {
        background-color: #f1f3f5;
    }

    /* --- Login Prompt --- */
    .login-prompt-box {
        padding: 2rem;
    }
    .login-prompt-actions {
        flex-direction: column;
    }
}