/* Genel Ayarlar */
:root {
    --primary-color: #FF8C00; /* Turuncu */
    --secondary-color: #2c3e50; /* Koyu Lacivert/Gri (profesyonel bir his verir) */
    --accent-color: #3498db; /* Mavi (vurgu renkleri için) */
    --text-color: #34495e; /* Koyu metin rengi */
    --light-text-color: #ecf0f1; /* Açık metin rengi */
    --background-color: #f8f9fa; /* Açık gri arka plan */
    --light-background: #ffffff; /* Beyaz kartlar, formlar */
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --card-background: #ffffff; /* Ürün/grup kartları için varsayılan */
    --heading-color: #333; /* product-card-title için varsayılan */

    /* Dashboard Kartları İçin */
    --dashboard-blue: #3498db;
    --dashboard-green: #2ecc71;
    --dashboard-cyan: #1abc9c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 2;
}

body {
    font-family: 'Century Gothic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* FOOTER'I AŞAĞI YAPIŞTIRMAK İÇİN */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Genel Başlık Stilleri */
h1, h2, h3, h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}
h2 { font-size: 2em; }
h3 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Header (Frontend) */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.site-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}
.main-nav {
    /* Navigasyon elementleri buraya gelirse stillendirilebilir */
}
.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.main-nav li a:hover {
    color: #FF8C00;
}

/* Full-width Dinamik Slider Bölümü */
.full-width-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 50px;
    background-color: #eee;
}
.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}
.slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.slider-caption {
    position: relative;
    z-index: 2;
    padding: 20px 40px;
    border-radius: 8px;
    max-width: 800px;
}
.slider-caption h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    line-height: 1.1;
}
.slider-caption p {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.btn {
    display: inline-block;
    background-color: #FF8C00;
    color: white;
    padding: 8px 10px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

/* Slider Navigasyonu (Oklar) */
.slider-control {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.slider-control.prev { left: 20px; }
.slider-control.next { right: 20px; }

.slider-control:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Slider Noktaları (Dots) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.dot.active {
    background-color: #FF8C00;
    transform: scale(1.2);
}
.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

/* Ana İçerik ve Kategori Izgarası */
.main-content {
    padding: 0px 0;
    flex-grow: 1; /* Ana içeriğin boş alanı kaplamasını sağlar */
}
.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #c10000;
    border-radius: 2px;
}
.no-items-message {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    font-size: 1.1em;
}

/* KATEGORİ KARTLARI GRİDİ (4'LÜ DÜZENLEME BURADA YAPILDI) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    background-color: #ffffff;
    border-radius: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    border: 1px solid var(--border-color);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}
.category-card h3 {
    margin: 0;
    font-size: 1.3em;
    color: #c10000;
    margin-bottom: 10px;
    text-decoration: none;
}

.category-card .category-icon {
    max-width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-card .category-icon-placeholder {
    font-size: 3em;
    color: #c10000;
    margin-bottom: 10px;
}

/*
 * DİKKAT: Kategori kartlarındaki Font Awesome ikonlarını CSS ile değiştirmek,
 * HTML'de direkt Font Awesome class'ları basıldığı için (örn: <i class="fas fa-utensils">)
 * standart CSS ile doğrudan ve güvenilir bir şekilde yapılamaz.
 *
 * Eğer ikonları kategori ismine göre değiştirmek istiyorsanız:
 * 1. En doğru yol: Veritabanındaki 'kategoriler' tablosuna 'icon_class' gibi bir sütun ekleyip,
 * admin panelinden her kategoriye ilgili Font Awesome ikon class'ını (örn: 'fa-glass-martini-alt', 'fa-beer') kaydetmek.
 * Sonra index.php'de bu class'ı dinamik olarak <i class="fas <?php echo $category['icon_class']; ?>"></i> şeklinde basmak.
 * 2. Geçici CSS hilesi (standart dışı, her tarayıcıda çalışmayabilir):
 * category-card h3:contains("ALKOLLÜ İÇECEK") + .category-icon-placeholder::before { content: "\f005"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
 * Bu tür bir yaklaşım, :contains() pseudo-class'ının standart olmaması ve metin içeriği değişirse bozulması gibi dezavantajlara sahiptir.
 *
 * Bu birleştirilmiş CSS dosyasında bu tür spesifik Font Awesome ikon değişikliği kuralları yer almamaktadır.
 * Eğer bu özelliği istiyorsanız, PHP tarafında dinamik ikon ataması yapılması önerilir.
 */


/* Ürün Grubu Listesi için Stiller */
.product-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}
@media (min-width: 992px) {
    .product-group-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-group-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 250px;
    justify-content: space-between;
}

.product-group-card:hover {
    background-color: #333;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-group-card .group-card-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px; /* Önceki -25px'ten normale getirildi */
    border: 1px solid var(--border-color);
}

.product-group-card h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #c10000;
    text-decoration: none;
}


/* Ürün Listesi Stilleri (Frontend) */
.product-group-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 40px;
}
.product-group-title {
    font-size: 2.2em;
    color: #FF8C00;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: none;
}
.product-group-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF8C00;
    border-radius: 2px;
}


.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Her bir Ürün Kartı Stili */
.product-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    min-height: 150px;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-card-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    text-align: left;
}

.product-card-title {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--heading-color, #333);
    margin-top: 0;
    margin-bottom: 8px;
    text-decoration: none;
}

.product-card h3 {
    text-decoration: none;
    color: var(--heading-color, #333);
    margin-bottom: 5px;
}


.product-card-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0px;
    flex-grow: 1;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-price {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 0;
    white-space: nowrap;
}


/* Product Detail Page Specific Styles */
.product-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--light-background);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.product-detail-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.product-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-detail-info {
    flex-grow: 1;
    text-align: center;
}

/* Ürün Detay Sayfası Başlığı - Alt çizgi sorununu çözmek için özel kural */
.product-detail-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 0;
}
.product-detail-title::after {
    content: none;
    display: none;
}


.product-detail-description {
    font-size: 1.1em;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.back-button-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #c10000;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 20px;
}

.back-button-detail:hover {
    background-color: #2a7cad;
    transform: translateY(-2px);
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .full-width-slider {
        height: 350px;
    }
    .slider-caption h1 {
        font-size: 2.5em;
    }
    .slider-caption p {
        font-size: 1.2em;
    }
    .slider-control {
        padding: 10px;
        font-size: 1.2em;
    }
    .section-title {
        font-size: 2em;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        padding: 30px 20px;
    }
    .product-list-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    .product-card-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .product-card-content {
        align-items: center;
        text-align: center;
    }
    .product-detail-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin: 20px auto;
        padding: 20px;
    }
    .product-detail-image-wrapper {
        max-width: 100%;
    }
    .product-detail-info {
        text-align: center;
    }
    .product-group-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .full-width-slider {
        height: 250px;
    }
    .slider-caption h1 {
        font-size: 1.8em;
    }
    .slider-caption p {
        font-size: 1em;
    }
    .btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    .main-content {
        padding: 0px 0;
    }
    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .product-group-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 8px;
    }
    .product-group-card {
        font-size: 0.8em;
        padding: 12px 15px;
    }
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    font-size: 0.95em;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}
.footer p {
    margin: 0;
    font-size: 0.95em;
    color: #ccc;
}

/* --- Admin Paneli Stilleri (Genel) --- */
.admin-body {
    background-color: var(--background-color);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background-color: var(--light-background);
    color: var(--text-color);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.admin-sidebar .logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-sidebar .logo img {
    max-width: 150px;
    height: auto;
}

.admin-sidebar nav ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar nav ul li {
    margin-bottom: 5px;
}

.admin-sidebar nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
    font-size: 1.05em;
}

.admin-sidebar nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar nav ul li a.active {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
}
.admin-sidebar nav ul li a.active:hover {
    background-color: var(--accent-color);
    color: white;
}
.admin-sidebar nav ul li a i {
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.admin-main-content {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.admin-panel {
    background-color: var(--light-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.admin-dashboard-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

/* Dashboard Bilgi Kartları */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background-color: var(--dashboard-blue);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.info-card h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-card .count {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1;
}

/* Özel kart renkleri */
.info-card.blue { background-color: var(--dashboard-blue); }
.info-card.green { background-color: var(--dashboard-green); }
.info-card.cyan { background-color: var(--dashboard-cyan); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.admin-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.admin-table tr:hover {
    background-color: #e9ecef;
}

.admin-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="number"]:focus,
.admin-form input[type="password"]:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.admin-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-form button:hover {
    background-color: #e07b00;
    transform: translateY(-1px);
}

.action-buttons a, .action-buttons button {
    margin-right: 8px;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.action-buttons a:hover, .action-buttons button:hover {
    transform: translateY(-1px);
}

.action-buttons .edit-btn {
    background-color: var(--success-color);
    color: white;
}
.action-buttons .edit-btn:hover { background-color: #218838; }

.action-buttons .delete-btn {
    background-color: var(--error-color);
    color: white;
}
.action-buttons .delete-btn:hover { background-color: #c82333; }

.action-buttons .add-btn {
    background-color: var(--accent-color);
    color: white;
}
.action-buttons .add-btn:hover { background-color: #218838; }

.action-buttons .sort-btn {
    background-color: #ffc107;
    color: var(--secondary-color);
}
.action-buttons .sort-btn:hover { background-color: #e0a800; }

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-table input[type="text"],
.admin-table input[type="number"],
.admin-table textarea,
.admin-table select {
    padding: 6px 10px;
    margin-bottom: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Mobil Uyumluluk (Admin Paneli) */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-sidebar .logo {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .admin-sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-sidebar nav ul li {
        margin: 5px 10px;
    }

    .admin-sidebar nav ul li a {
        padding: 8px 12px;
        font-size: 0.95em;
        gap: 8px;
    }

    .admin-main-content {
        padding: 20px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .admin-table, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr {
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .admin-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
        font-size: 0.9em;
    }

    .admin-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--secondary-color);
    }
    .admin-table td form {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .admin-table td form input,
    .admin-table td form textarea,
    .admin-table td form select,
    .admin-table td form button {
        width: 100%;
        margin-bottom: 5px;
    }
    .admin-table td .action-buttons {
        text-align: center;
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .admin-table td .action-buttons a,
    .admin-table td .action-buttons button {
        margin: 5px;
    }
}

/* Accessibility - Ekran okuyucular için gizleme */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Genel Hata ve Mesaj Stilleri */
.no-items-message, .error-message {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-color);
    padding: 20px;
    background-color: var(--light-background);
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.error-message {
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Geri Dön Butonu */
.back-button {
    display: inline-block;
    background-color: #c10000;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.back-button:hover {
    background-color: #2a7cad;
    transform: translateY(-2px);
}

