
/* Modern Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
}

/* Modern Header */
.dashboard-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-header h1::before {
    content: '⚙️';
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Modern Layout */
.dashboard-body {
    display: flex;
    flex: 1;
    gap: 0;
    min-height: calc(100vh - 100px);
}

/* Modern Sidebar */
.sidebar {
    width: 280px;
    background: #1e293b;
    padding: 2rem 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    opacity: 0.8;
}

.sidebar-content {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
}

.sidebar h3 {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar a:hover::before {
    left: 100%;
}

.sidebar a:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.sidebar a.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.sidebar a i {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

/* Modern Content Area */
.content-area {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.content-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Modern Cards */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3::before {
    content: '📊';
    font-size: 1.25rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .sidebar-content {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .sidebar a {
        white-space: nowrap;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tab Content Animation */
.tab-content {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.messages-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.messages-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.messages-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.messages-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.messages-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.messages-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.messages-table tbody tr:hover {
    background-color: #f8fafc;
}

.message-content {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.5;
}

.message-date {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}

.message-name {
    font-weight: 600;
    color: #1e293b;
}

.message-email {
    color: #3b82f6;
    font-size: 0.9rem;
}

.no-messages {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-style: italic;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .messages-container {
        margin: 20px;
        padding: 15px;
    }
    
    .messages-table {
        font-size: 0.9rem;
    }
    
    .messages-table th,
    .messages-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .messages-container {
        margin: 10px;
        padding: 10px;
    }
    
    .messages-header {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .messages-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .messages-table thead,
    .messages-table tbody,
    .messages-table th,
    .messages-table td,
    .messages-table tr {
        display: block;
    }
    
    .messages-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .messages-table tr {
        border: 1px solid #e2e8f0;
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .messages-table td {
        border: none;
        position: relative;
        padding: 0.5rem 0.5rem 0.5rem 50%;
        white-space: normal;
    }
    
    .messages-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #374151;
    }
    
    .message-content {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .messages-container {
        margin: 5px;
        padding: 8px;
    }
    
    .messages-header {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .messages-table td {
        padding: 0.5rem 0.5rem 0.5rem 45%;
        font-size: 0.85rem;
    }
    
    .messages-table td:before {
        font-size: 0.8rem;
    }
}
/* ========================================================================= */
/* MODERN ADMIN PANELİ - MESAJLAR TABLOSU İYİLEŞTİRMELERİ                 */
/* ========================================================================= */

/* --- Okunmamış (Yeni) Mesaj Satırları --- */
.messages-table tbody tr.okunmadi {
    /* Hafif bir arkaplan rengi ve daha kalın bir sol kenarlık ile vurgula */
    background-color: #f0f9ff; /* Açık mavi */
    border-left: 4px solid #3b82f6; /* Vurgu için mavi kenarlık */
}

.messages-table tbody tr.okunmadi .message-name,
.messages-table tbody tr.okunmadi .message-email {
    font-weight: 700; /* Yazıları daha belirgin yap */
    color: #1e3a8a;
}


/* --- Okunmuş Mesaj Satırları --- */
.messages-table tbody tr.okundu {
    /* Okunmuş mesajların daha az dikkat çekmesi için hafifçe soluklaştır */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.messages-table tbody tr.okundu:hover {
    opacity: 1; /* Üzerine gelince tekrar netleştir */
    background-color: #f8fafc;
}


/* --- Durum Sütunu İçin Modern Rozetler --- */
td.status-cell {
    /* İçeriği ortalamak için */
    text-align: center;
    vertical-align: middle !important; /* dikey hizalamayı zorla */
}

/* Rozetlerin genel yapısı */
.status-cell::before {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px; /* Tam yuvarlak hap şeklinde */
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* "Yeni" Rozeti */
tr.okunmadi .status-cell::before {
    content: 'Yeni';
    background: linear-gradient(135deg, #22c55e, #16a34a); /* Yeşil gradient */
    color: white;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* "Okundu" Rozeti */
tr.okundu .status-cell::before {
    content: 'Okundu';
    background: #e2e8f0; /* Açık gri */
    color: #475569; /* Koyu gri yazı */
}


/* --- İşlemler Sütunundaki Butonlar --- */
td.actions-cell {
    /* Butonların düzgün hizalanması için */
    white-space: nowrap;
    text-align: right;
    vertical-align: middle !important; /* dikey hizalamayı zorla */
}

/* Sizin .btn sınıfınızı temel alarak butonları özelleştirelim */
.actions-cell .btn {
    /* Daha küçük ve kompakt butonlar */
    padding: 0.5rem 1rem;
    font-size: 0.8rem; /* 13px */
    border-radius: 8px;
    margin-left: 0.5rem; /* Butonlar arasına boşluk */
}

/* Okundu/Okunmadı Butonu */
.actions-cell .btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.2);
}

.actions-cell .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.3);
}

/* Sil Butonu */
.actions-cell .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.actions-cell .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* --- Mobil (Stackable Table) İçin Düzeltme --- */
@media (max-width: 768px) {
    /* Mobil görünümde rozetlerin ve butonların düzgün görünmesi */
    .messages-table td.status-cell,
    .messages-table td.actions-cell {
        text-align: right; /* İçeriği sağa yasla */
    }

    /* "Durum:" ve "İşlemler:" etiketlerini gizle */
    .messages-table td.status-cell:before,
    .messages-table td.actions-cell:before {
        content: "" !important; /* Etiketi kaldır */
        padding-right: 0;
        width: 0;
    }

    .messages-table td.status-cell,
    .messages-table td.actions-cell {
        padding-left: 0.5rem; /* Etiket kalktığı için sol boşluğu sıfırla */
    }

    .actions-cell .btn {
       display: inline-block; /* Butonların yanyana gelmesini sağla */
       margin-top: 0.5rem;
    }
}
/* ========================================================================= */
/* LİSTE FİLTRELEME VE SAYFALAMA STİLLERİ (DÜZELTİLMİŞ VE HATASIZ HALİ)    */
/* ========================================================================= */

/* Liste başlığı ve filtre formunu yan yana getiren sarmalayıcı */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap; /* Küçük ekranlar için */
    gap: 1rem;
}

.list-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b; /* <<< HATA BURADAYDI, DÜZELTİLDİ */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Her iki filtreleme formu için ortak stil */
#bakim-filter-form,
#customer-filter-form {
    display: flex;
    gap: 0.5rem;
}

/* Her iki arama kutusu için ortak stil */
#bakim-search-input,
#customer-search-input {
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Her iki arama kutusu için ortak odak (focus) stili */
#bakim-search-input:focus,
#customer-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Sayfalama linkleri sarmalayıcısı */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    background-color: #f1f5f9;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

.pagination .dots {
    padding: 0.5rem 0;
    color: #94a3b8;
}

/* ========================================================================= */
/* YENİLENMİŞ GİRİŞ EKRANI TASARIMI (Glassmorphism Efekti)                  */
/* ========================================================================= */

/* Ana Giriş Kutusu (Buzlu Cam Efekti) */
.login-container {
    max-width: 550px; /* Genişliği biraz daha kompakt tuttuk */
    width: 95%;
    margin: 0 auto;
    /* Yarı şeffaf beyaz arka plan */
    background: rgb(233, 224, 224); 
    /* Buzlu cam efekti için */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari uyumluluğu */
    padding: 50px 40px;
    border-radius: 20px;
    /* Daha modern bir gölge ve kenarlık */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Giriş Kutusu Başlığı ve İkonu */
.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #ffffff; /* Yazı rengini beyaz yaptık */
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Başlığın üstüne kilit ikonu ekliyoruz */
.login-container h2::before {
    content: '🔒';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

/* Formun Kendisi */
.login-container #loginform {
    width: 100%;
}

/* Form Etiketleri (Kullanıcı Adı, Şifre) */
.login-container #loginform label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9); /* Rengi açık yaptık */
}

/* Form Giriş Alanları (input) */
.login-container #loginform input[type="text"],
.login-container #loginform input[type="password"] {
    width: 100%;
    padding: 1rem;
    /* Yarı şeffaf input arka planı */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Yazılan yazının rengi beyaz */
}

/* Placeholder metninin rengini ayarlama */
.login-container #loginform input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-container #loginform input[type="text"]:focus,
.login-container #loginform input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    /* Daha yumuşak bir odaklanma efekti */
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

/* "Beni Hatırla" Bölümü */
.login-container #loginform .login-remember {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Giriş Butonu */
.login-container #loginform #wp-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-container #loginform #wp-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}

/* "Şifrenizi mi unuttunuz?" linki */
.login-container > p {
    text-align: center;
    margin-top: 2rem;
}

.login-container > p a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-container > p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ========================================================================= */
/* ADMİN GİRİŞ SAYFASI - YERLEŞİM İÇİN ENTEGRE ÇÖZÜM                         */
/* ========================================================================= */

/* Sadece Admin Paneli sayfasının gövdesini hedef al */
.page-id-169 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sayfanın ana içerik alanını düzenle */
.page-id-169 #main-content {
    /* 1. Footer'ı aşağı itmek için boşluğu doldurur */
    flex-grow: 1;

    /* 2. Temanın beyaz arka planını kaldırır, sayfa arka planı görünür olur */
    background: transparent !important;
    
    /* 3. İçindeki formu dikeyde ortalamak için padding kullanır */
    /* Header için üstten boşluk + formun ortalı görünmesi için ek boşluk */
    padding-top: 15vh; /* Ekran yüksekliğinin %15'i kadar üst boşluk */
    padding-bottom: 5vh; /* Ekran yüksekliğinin %5'i kadar alt boşluk */
}

/* Giriş kutusunun kendi dış boşluğunu sıfırla */
.page-id-169 .login-container {
    margin-top: 0;
    margin-bottom: 0;
}
/* ========================================================================= */
/* MÜŞTERİ BİLGİLERİ KISMI İÇİN GRID DÜZENLEMELERİ                             */
.musteri-bilgileri.grid-2x2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .musteri-bilgileri.grid-4-cols {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    /* ========================================================================= */
/* ADMİN PANELİ - TABLET VE MOBİL İÇİN EK İYİLEŞTİRMELER                  */
/* ========================================================================= */

/* --- Tablet Görünümü İyileştirmeleri (1024px ve altı) --- */
@media (max-width: 1024px) {
    .dashboard-body {
        /* Bu kural zaten vardı, doğru bir şekilde çalışıyor */
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
        /* Alttaki içerikle arasında boşluk bırakalım */
        border-bottom: 1px solid #334155;
    }
    
    .sidebar-content {
        display: flex;
        overflow-x: auto; /* Yatay kaydırma */
        gap: 0.5rem;
        padding: 0 1rem;
        /* Kaydırma çubuğunu gizleyelim (isteğe bağlı, estetik için) */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .sidebar-content::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .sidebar a {
        /* Menü elemanlarının daralmaması için */
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* İçerik alanında daha fazla yer açalım */
    .content-area {
        padding: 1.5rem;
    }
}


/* --- Mobil Görünüm İyileştirmeleri (768px ve altı) --- */
@media (max-width: 768px) {
    .dashboard-header {
        /* Bu kural zaten vardı */
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .dashboard-header h1 {
        /* Mobil için başlık boyutunu biraz küçültelim */
        font-size: 1.75rem;
    }
    
    .content-area {
        padding: 1rem;
    }

    .content-header h2 {
        /* İçerik başlıklarını küçültelim */
        font-size: 1.5rem;
    }

    .content-header p {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        /* Bu kural zaten vardı */
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.25rem;
    }
    
    /* Filtreleme ve liste başlığını mobilde alt alta getir */
    .list-header {
        flex-direction: column;
        align-items: stretch; /* Elemanları tam genişliğe yay */
        gap: 1.5rem;
    }

    #bakim-filter-form,
    #customer-filter-form {
        flex-direction: column;
    }

    #bakim-search-input,
    #customer-search-input {
        min-width: 100%; /* Arama kutusu tam genişlik olsun */
    }
}


/* --- Daha Küçük Telefonlar İçin Ekstra Ayarlar (480px ve altı) --- */
@media (max-width: 480px) {
    body {
        /* Okunabilirliği artırmak için yazı boyutunu ayarla */
        font-size: 15px;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .logout-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .content-area {
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .card {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Sayfalama linklerini daha kompakt yap */
    .pagination .page-numbers {
        padding: 0.4rem 0.8rem;
    }
}

/* ========================================================================= */
/* WORDPRESS ADMIN BAR İÇİN HEADER KONUM DÜZELTMESİ                        */
/* ========================================================================= */

/* Admin bar'ı aktifken, sabitlenmiş header'ı aşağı it */
body.admin-bar .header {
    top: 32px; /* Admin bar'ının masaüstü yüksekliği */
}

/* Admin bar'ı mobilde daha yüksek olduğu için (782px altında) */
@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px; /* Admin bar'ının mobil yüksekliği */
    }
}

/* --- İÇERİK BOŞLUĞU AYARI (ÇOK ÖNEMLİ) --- */
/* 
   body'e verdiğiniz padding-top değeri de admin bar'ına göre ayarlanmalı,
   aksi takdirde içeriğiniz yine header'ın altına girer.
*/
body { 
    margin: 0; 
    font-family: 'Poppins', sans-serif;
    /* Normalde header yüksekliği kadar boşluk */
    padding-top: 84px; 
}

/* Admin bar'ı varken bu boşluğu artır */
body.admin-bar {
    padding-top: calc(84px + 32px); /* Header yüksekliği + Admin Bar Yüksekliği */
}

@media screen and (max-width: 782px) {
    body.admin-bar {
       padding-top: calc(84px + 46px); /* Mobil için de aynı hesaplama */
    }
}