/* --- GENEL AYARLAR --- */
:root {
    --primary-color: #0d6efd; /* Otek Harita Ana Mavi */
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* --- NAVİGASYON --- */
.navbar {
    transition: var(--transition);
}

.navbar-brand {
    letter-spacing: 1px;
}

/* --- ANA SAYFA (HERO) SECTION --- */
.hero-section {
    position: relative;
    padding: 100px 0;
    /* Harita mühendisliğini çağrıştıran teknik bir görsel kullanmanızı öneririm */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1504151932400-72d4384f04b3?q=80&w=2000') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax efekti için */
}

.ali-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(56, 164, 207, 1),rgba(87, 199, 133, 1)) no-repeat center center;
    background-size:cover;
    background-attachment:fixed;
}

/* --- KART TASARIMLARI (PROJELER VE HİZMETLER) --- */
.transition-hover {
    transition: var(--transition);
    border-radius: 12px;
    overflow: hidden;
}

/* Proje Kartları Hover Efekti */
.card.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

/* Hizmetler Sayfası Kart Hover Efekti (Maviye Dönüşüm) */
.service-card:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

    .service-card:hover i,
    .service-card:hover h5,
    .service-card:hover p {
        color: white !important;
    }

/* --- GÖRSEL AYARLARI --- */
.object-fit-cover {
    object-fit: cover;
}

.border-dashed {
    border: 2px dashed #dee2e6 !important;
}

/* --- ADMİN PANELİ ÖZEL (SIDEBAR) --- */
.sidebar {
    min-height: 100vh;
    background-color: var(--dark-color);
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

    .sidebar .nav-link {
        color: rgba(255,255,255,0.8);
        transition: var(--transition);
        border-radius: 8px;
        margin: 5px 15px;
    }

        .sidebar .nav-link:hover {
            color: white;
            background-color: rgba(255,255,255,0.1);
        }

        .sidebar .nav-link.active {
            background-color: var(--primary-color);
            color: white;
        }

/* --- FORM VE TABLO DÜZENLEMELERİ --- */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.table img {
    object-fit: cover;
    border: 1px solid #dee2e6;
}

/* --- İLETİŞİM SAYFASI --- */
.contact-info-card {
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
}

/* Admin Mesaj Listesi Avatar Stili */
.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    border: 1px solid #dee2e6;
}

/* Tablo Satırı Hover Efekti */
.table-hover tbody tr:hover {
    background-color: #fcfcfc;
    transition: background-color 0.2s ease;
}

.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .transition-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

.hover-primary:hover {
    color: #0d6efd !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-primary:hover, .hover-primary:hover i {
    color: #0d6efd !important;
    transition: 0.3s;
}

html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1; /* Tüm boşluğu bu doldurur, footer'ı aşağı presler */
}

.panel-heading {
    padding: 0px;
    background: #f7f7f7;
    border-radius: 0px;
    background-image: linear-gradient(to bottom, #0d6efd 0, #0951ba 100%);
}

.ali-dugme {
    background-color: #0951ba;
    border-color: #0951ba;
    color: #1b1b1b;
}

/* Başlık satırı için */
.floating-card .panel-heading {
    background-color: #001f4d; /* Lacivert */
    padding: 8px 12px;
    border-radius: 10px;
}

    /* Başlık yazısı kontrast için */
    .floating-card .panel-heading h5 {
        color: #fff; /* Beyaz yazı */
        margin: 0;
    }

/* Buton için */
.floating-card .btn-lacivert {
    background-color: #001f4d; /* Lacivert */
    border-color: #001f4d;
    color: #fff;
}

    .floating-card .btn-lacivert:hover {
        background-color: #003080; /* Daha açık lacivert */
        border-color: #003080;
        color: #fff;
    }

/* ============================================
   FLOATING CARD'LAR İÇİN MOBİL DÜZELTMELERİ
   Otek Harita
   ============================================ */

/* Genel taşma engelleme */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TABLET VE MOBİL (768px ve altı)
   ============================================ */
@media (max-width: 768px) {

    /* Floating kartları normal akışa al */
    .floating-card,
    .floating-card.floating-left,
    .floating-card.floating-right,
    #floatingCardLeft,
    #floatingCardRight {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
        float: none !important;
        box-sizing: border-box;
    }

    /* İçerik padding */
    .floating-card-content {
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Kartların sıralaması:
       1. Hero (ana içerik)
       2. Çalışmalarımızdan (sol kart)
       3. Mevzuat (sağ kart)
    */
    #floatingCardLeft {
        order: 2;
    }

    #floatingCardRight {
        order: 3;
    }

    /* Eğer parent flex değilse, flex'e çevir */
    .main-container,
    .content-wrapper,
    main {
        display: flex;
        flex-direction: column;
    }

    /* Hero bölümü */
    .hero, .hero-section, [class*="hero"] {
        order: 1;
        padding: 20px 15px;
        min-height: auto;
        text-align: center;
    }

    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    /* Kart başlıkları (Çalışmalarımızdan / Mevzuat) */
    .floating-card h2,
    .floating-card h3,
    .floating-card-content > h2,
    .floating-card-content > h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    /* Kart içindeki linkler/öğeler */
    .floating-card a,
    .floating-card-content a {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 8px 5px;
        display: block;
    }

        /* MAVİ TAKILI KALAN HOVER/ACTIVE STATE'İ DÜZELT */
        .floating-card a:hover,
        .floating-card a:focus,
        .floating-card a.active,
        .floating-card-content a:hover,
        .floating-card-content a:focus {
            background-color: transparent !important;
            outline: none !important;
        }

        /* Sadece dokunma anında highlight */
        .floating-card a:active,
        .floating-card-content a:active {
            background-color: rgba(0, 123, 255, 0.1) !important;
        }

    /* Butonlar */
    .floating-card .btn,
    .floating-card button {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* ============================================
   KÜÇÜK TELEFONLAR (480px altı)
   ============================================ */
@media (max-width: 480px) {

    h1 {
        font-size: 1.5rem !important;
    }

    .floating-card a {
        font-size: 0.85rem;
    }

    .floating-card-content {
        padding: 12px !important;
    }
}

/* ============================================
   WHATSAPP SABİT BUTONU
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        color: white;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
        fill: white;
    }

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

