* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- HEADER VE LOGO YAN YANA YAPI --- */
header {
    background: #2c3e50;
    padding: 50px 0; /* Header yüksekliği sabit kalsın diye eski ayarında bıraktık */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    max-width: 800px; 
    margin: 0px 0px 0px 150px;
}

.main-logo {
    width: 440px !important;      /* Sadece resmin genişliğini belirgin şekilde büyütüyoruz */
    max-width: 440px !important;  /* Üst sınır koyan başka bir kod varsa onu eziyoruz */
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.2));
}

.header-text {
    text-align: left;
}

header h1 {
    font-size: 3rem; 
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.2;
}

header p {
    font-size: 1.2rem; 
    color: #ecf0f1;
}

/* --- KATEGORİ NAVİGASYON --- */
.category-nav {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e0e0e0;
}

.category-nav .container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.category-btn.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

main {
    padding: 50px 0;
}

/* --- MENÜ KARTLARI (GRID) --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.menu-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.menu-item.hidden {
    display: none;
}

.menu-image {
    width: 100%;
    height: 200px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.menu-image img {
    height: 100%;
    object-fit: cover;
}

.menu-image .no-image {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-content {
    padding: 20px;
}

.menu-category {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.menu-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.menu-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.menu-price {
    font-size: 1.4rem;
    color: #27ae60;
    font-weight: 600;
}

.menu-ingredients {
    font-size: 0.8rem;
    color: #888;
}

/* --- FOOTER --- */
footer {
    background: #2c3e50;
    padding: 30px 0;
    text-align: center;
    color: #ecf0f1;
    margin-top: 40px;
}

footer p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.admin-link {
    display: inline-block;
    margin-top: 10px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 20px;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
}

.admin-link:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* --- ADMİN GİRİŞ & PANEL PANELİ --- */
.login-page, .admin-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container, .admin-container {
    width: 100%;
    max-width: 500px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #fcc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.login-btn, .submit-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-btn:hover, .submit-btn:hover {
    background: #2980b9;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: #2980b9;
}

.admin-container {
    max-width: 800px;
}

.admin-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e0e0e0;
}

.admin-header h1 {
    color: #333;
    margin: 0;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.logout-btn:hover {
    background: #c0392b;
}

.message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-content {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.add-product-form h2 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 12px;
}

.admin-links {
    margin-top: 30px;
    text-align: center;
}

.view-menu-btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.view-menu-btn:hover {
    background: #2980b9;
}

.products-list {
    margin-top: 40px;
}

.products-list h2 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.products-table thead {
    background: #f8f9fa;
}

.products-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.products-table tbody tr:hover {
    background: #f8f9fa;
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.no-image-small {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

.edit-btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 5px;
    transition: background 0.2s ease;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.delete-btn:hover {
    background: #c0392b;
}

.cancel-btn {
    display: inline-block;
    background: #95a5a6;
    color: #fff;
    padding: 14px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

.current-image {
    margin-top: 10px;
}

.current-image img {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column; /* Mobilde logo ve yazı alt alta gelir */
        text-align: center;
        gap: 15px;
    }

    .header-text {
        text-align: center;
    }

    header h1 {
        font-size: 2.2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .category-nav .container {
        gap: 8px;
    }
    
    .category-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .login-box, .admin-content, .admin-header {
        padding: 25px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-nav {
        flex-direction: column;
        width: 100%;
    }
	
	
	/* --- TELEFONLAR İÇİN ÖZEL DÜZELTME (MASAÜSTÜNÜ ETKİLEMEZ) --- */
@media (max-width: 768px) {
    header {
        padding: 30px 0 !important; /* Mobilde header alanını dikeyde daralttık */
    }

    .logo-container {
        flex-direction: column !important; /* Logo üstte, yazı altta olacak şekilde dikey hizalar */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important; /* Araya tatlı bir boşluk bıraktık */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .main-logo {
        width: 140px !important; /* Telefondaki ideal logo büyüklüğü */
        max-width: 140px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .header-text {
        text-align: center !important; /* Yazıları mobilde tamamen ortalar */
        width: 100% !important;
    }

    header h1 {
        font-size: 2.2rem !important; /* Telefon ekranı için başlık boyutu */
        margin-bottom: 5px !important;
    }

    header p {
        font-size: 1rem !important; /* Telefon ekranı için alt yazı boyutu */
    }
    
    /* Menü butonlarının mobilde daha dengeli durması için */
    .category-nav .container {
        gap: 6px !important;
        padding: 0 10px !important;
    }
    
    .category-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}
}