/* ========================================================== */
/* Genel Değişkenler ve Reset */
/* ========================================================== */
:root {
    --primary-color: #007bff; /* Mavi - Temel aksiyon rengi */
    --secondary-color: #6c757d; /* Gri */
    --success-color: #28a745; /* Yeşil */
    --danger-color: #dc3545; /* Kırmızı */
    --dark-color: #343a40; /* Koyu tema */
    --light-bg: #f8f9fa; /* Açık arka plan */
    --white: #ffffff;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 🎯 STICKY FOOTER İÇİN GEREKLİ TEMEL AYARLAR */
body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    
    /* Sticky Footer için: */
    display: flex;
    flex-direction: column; 
    min-height: 100vh; /* Ekranın tamamını kapla */
}

/* 🎯 Frontend ana içerik kapsayıcısı (Header ve Footer arasındaki her şey) */
.content-wrapper {
    flex: 1; /* Ana içeriğin büyüyerek footer'ı aşağı itmesini sağlar */
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s, opacity 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Header ve Navbar */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    /* ... (Mevcut Hero Section Stilleri) ... */
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%; /* Kapsayıcıyı genişlet */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


/* Genel Section Stilleri */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Kategori Kartları (public/pages/products.html) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px; /* Yeni eklenen */
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s; /* Yeni eklenen */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* Yeni eklenen */
}

.category-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.category-card p {
    padding: 0 20px 20px;
    color: var(--secondary-color);
}

.btn-category {
    display: block;
    border-radius: 0;
    margin-top: auto;
}

/* SSS - Akordiyon Stilleri */
.accordion {
    max-width: 900px;
    margin: 40px auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--light-bg);
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
}

.accordion-content p {
    padding: 15px 0;
    color: var(--secondary-color);
}

/* Form Stilleri (Request Quote ve Contact) */
.form-section {
    background-color: var(--light-bg);
}

.form-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-box h2 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    
    /* Footer sabitleme için ekstra stil gerektirmez, body flex yapısı halleder */
}

/* Genel Kart Stilleri */
.product-card, .service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover, .service-card:hover {
    transform: scale(1.05);
}

/* Ürün Resmi */
.product-img, .service-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.products-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn-tertiary {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}
/* Kısa açıklama */
.short-description {
    display: block;
    max-height: 50px; /* Sadece ilk kısmını göstermek için */
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: #555;
}

/* "Tümünü Gör" Butonları */
.btn-secondary {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #0056b3;
}

/* Ürünler ve Hizmetler Kart Düzeni */
.product-card, .service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover, .service-card:hover {
    transform: scale(1.05);
}

/* Ürün Resmi */
.product-img, .service-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.products-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
/* Genel Stil */
.contact-container {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-form-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 48%;
}

.contact-info {
    width: 48%;
}

.contact-info h3, .contact-form-box h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
}

.info-item p {
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

button.btn {
    padding: 15px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

button.btn:hover {
    background-color: #45a049;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Harita Stil */
.map-container {
    margin-top: 30px;
    text-align: center;
}

.map-container iframe {
    border-radius: 10px;
}

/* WhatsApp Butonu Stil */
.whatsapp-button {
    margin-top: 20px;
    text-align: center;
}

.whatsapp-button a {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
}

.whatsapp-button a:hover {
    background-color: #128C7E;
}

.whatsapp-button img {
    margin-right: 10px;
    width: 25px;
    height: 25px;
}


/* Kullanıcı tarafındaki galeri */
.gallery-section {
    padding: 40px 0;
    background-color: #f4f4f4;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Şeffaf siyah zemin */
    color: white;
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
    z-index: 2;
}



/* Admin panelinde galeri öğeleri için stil */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid yapısı */
    gap: 20px;
    margin-top: 20px;
}

.admin-gallery-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.admin-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-gallery-item .category-name {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Yarı şeffaf siyah arka plan */
    color: white;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
}

.admin-gallery-item .delete-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: red;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.admin-gallery-item .delete-btn:hover {
    background-color: darkred;
}



/* H2 ve Buton Stili */
h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn-tertiary:hover {
    background-color: #0056b3;
}

/* Frontend Services Sayfası CSS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, transform 0.3s;
    border-bottom: 3px solid var(--primary-color);
}

.service-card:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    color: #333;
    margin-top: 0;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    min-height: 60px;
}

.btn-tertiary {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
}

/* ========================================================== */
/* ADMIN PANELİ STİLLERİ (GÜNCELLENMİŞ VE TEMİZLENMİŞ)   */
/* ========================================================== */

/* Geçici olarak CSS dosyanıza ekleyip deneyin */
.crud-form textarea#map_url {
    position: relative; /* z-index'in çalışması için */
    z-index: 9999;
    pointer-events: auto !important; /* Her türlü engeli kaldır */
}
/* Admin Genel Yapı */
.admin-sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0d3b66; /* Koyu lacivert, secondary'den daha koyu */
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.admin-sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar ul li a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.admin-sidebar ul li a:hover {
    background-color: #3e444a; 
    color: white;
}

.admin-sidebar ul li a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

/* Ana İçerik Alanı */
.admin-main-content {
    margin-left: 250px;
    padding: 30px; /* Biraz artırıldı */
    width: calc(100% - 250px);
    background-color: #f4f7f9;
    min-height: 100vh;
}

/* Top Bar (Header) */
.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-top-bar h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.admin-top-bar strong {
    color: var(--dark-color);
}

/* Dashboard İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    border-left: 5px solid var(--primary-color); /* Yeni görsel vurgu */
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h4 {
    margin-top: 0;
    color: #777;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.stat-card h4 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 5px 0 0 0;
}

.stat-new-quotes {
    border-left-color: var(--danger-color);
    background-color: #fff0f0; 
}

.stat-new-quotes .stat-value {
    color: var(--danger-color);
}


/* Hızlı İşlemler */
.quick-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-action i {
    margin-right: 8px;
}

.btn-action:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color) !important;
}

.btn-danger:hover {
    background-color: #a0212f !important;
}


/* CRUD Form ve Liste Stilleri */
.crud-form {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.crud-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}
.crud-form input[type="text"], .crud-form textarea, .crud-form input[type="number"], .crud-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.crud-list-item {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.crud-list-item h4 {
    margin: 0;
}
.list-actions button, .list-actions a {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.list-actions .edit-btn { background-color: #ffc107; color: #333; }
.list-actions .delete-btn { background-color: var(--danger-color); color: var(--white); }

/* Teklif Tablosu (Quotes) */
.table-container { 
    overflow-x: auto; 
    margin-top: 20px; 
}
.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: var(--white); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.admin-table th, .admin-table td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #ddd; 
    text-align: left; 
}
.admin-table th { 
    background-color: var(--primary-color); 
    color: white; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
}
.admin-table tr:hover {
    background-color: #f5f5f5;
}

/* Türkçe Durum Renkleri için Stil (quotes.php ile uyumlu olmalı) */
.admin-table .status-yeni-istek {
    background-color: #fff3cd; /* Sarımsı */
}
.admin-table .status-işleniyor {
    background-color: #d1ecf1; /* Mavimsi */
}
.admin-table .status-tamamlandi {
    background-color: #d4edda; /* Yeşilimsi */
}
.admin-table .status-iptal-edildi {
    background-color: #f8d7da; /* Kırmızımsı */
}
/* ========================================================== */
/* Eklenen CSS (public/assets/css/style.css) */
/* ========================================================== */

/* Küçük Formlar için Kapsayıcı (Profile ve Login/Crud Formları için) */
.crud-form {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Daha belirgin gölge */
    margin: 20px auto; /* Ortalamak veya yukarıdan boşluk vermek için */
    border: 1px solid #e9ecef;
}

/* Form grupları arasında boşluk */
.crud-form .form-group {
    margin-bottom: 20px;
}

.crud-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057; /* Koyu metin rengi */
}

/* Input stilleri zaten genel form stillerinizden geliyor, ancak formda tutarlılık için tekrar ekleyelim */
.crud-form input[type="text"], 
.crud-form input[type="password"], 
.crud-form textarea, 
.crud-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.crud-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}