/* Genel Stil */
body {
    font-family: Arial, sans-serif;
    background-color: #2e2e2e; /* Koyu gri arka plan */
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Navbar Tasarımı */
.navbar {
    text-align: center;
    padding: 10px 0;
    background-color: #2e2e2e;
    border-bottom: 2px solid #ff4444;
}

.navbar a {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    background-color: #ff4444;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin: 3px;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.navbar a:hover {
    background-color: #ffffff;
    color: #ff4444;
    border: 2px solid #ff4444;
}

/* Çıkış Butonu (Özel Stil) */
.logout-btn {
    background-color: #cc0000 !important;
    border: 2px solid #ffffff !important;
}

.logout-btn:hover {
    background-color: #ffffff !important;
    color: #cc0000 !important;
    border: 2px solid #cc0000 !important;
}

/* Genel Buton Stili */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    background-color: #ff4444;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin: 3px;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.btn:hover {
    background-color: #ffffff;
    color: #ff4444;
    border: 2px solid #ff4444;
}

/* Butonları Yan Yana Getirme */
.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Küçük Buton Stilleri */
.btn.approve {
    background-color: #4caf50;
    font-size: 12px;
    padding: 5px 10px;
}

.btn.approve:hover {
    background-color: #45a049;
}

.btn.reject {
    background-color: #ff4444;
    font-size: 12px;
    padding: 5px 10px;
}

.btn.reject:hover {
    background-color: #cc0000;
}

.btn.delete {
    background-color: #555;
    font-size: 12px;
    padding: 5px 10px;
}

.btn.delete:hover {
    background-color: #333;
}

/* Formları Ortala */
form {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    margin: auto;
    box-shadow: 0px 0px 10px #000;
    text-align: center;
}

/* Form Elemanları */
input, select, textarea {
    width: 95%;
    padding: 8px;
    margin: 6px 0;
    border: 2px solid #ff4444;
    border-radius: 4px;
    background: #2e2e2e;
    color: #ffffff;
}

textarea {
    resize: vertical;
}

/* Tablo Konteyner */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

/* Tablo Stili */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    border: 2px solid #ff4444;
}

th, td {
    padding: 6px;
    border: 1px solid #ff4444;
    text-align: center;
    font-size: 12px;
    word-wrap: break-word;
    white-space: normal;
    max-width: 150px;
}

/* Başlık Satırları */
th {
    background-color: #ff4444;
    color: #ffffff;
    text-align: center;
}

/* Durum Etiketleri */
.status {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.status.pending {
    background-color: #ffcc00;
    color: black;
}

.status.approved {
    background-color: #4caf50;
    color: white;
}

.status.rejected {
    background-color: #ff4444;
    color: white;
}

/* Modal (Açılır Pencere) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal İçeriği */
.modal-content {
    background-color: #1e1e1e;
    color: #fff;
    margin: 10% auto;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 400px;
}

/* Kapat Butonu (X) */
.close {
    color: #ff4444;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #cc0000;
}

/* Ürün İsmi Bağlantısı */
.product-link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.product-link:hover {
    text-decoration: underline;
}

/* Ürün Seçim Alanı ve Açıklama Kutusu */
.product-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#productDescriptionBox {
    width: 200px;
    height: 60px;
    border: 2px solid #ff4444;
    background-color: #1e1e1e;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 4px;
    overflow-y: auto;
}

/* Footer */
footer {
    margin-top: 20px;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

/* Linkler */
a {
    color: #ffcc00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mobil Uyumluluk */
@media screen and (max-width: 768px) {
    body {
        padding: 8px;
    }

    .navbar a {
        display: block;
        margin-bottom: 4px;
    }

    .table-container {
        overflow-x: auto;
    }
    
    th, td {
        max-width: 100px;
    }

    form {
        width: 100%;
    }

    .modal-content {
        width: 90%;
    }

    /* Butonları Küçült */
    .btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    td {
        font-size: 12px;
        padding: 4px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }
}

.search-form {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-form input {
    width: 300px;
    padding: 8px;
    border: 2px solid #ff4444;
    border-radius: 5px;
    background: #2e2e2e;
    color: #ffffff;
}

.search-btn {
    background-color: #ff4444;
    color: white;
    padding: 8px 15px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: white;
    color: #ff4444;
    border: 2px solid #ff4444;
}
/* Arama Kutusu */
.search-box {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ff4444;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #1e1e1e;
    color: white;
    text-align: center;
}
