/* --- Global Değişkenler & CSS Reset --- */
:root {
    --bg-dark: #0a0a0a;
    --card-bg: #171717;
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --border-color: #262626;
    --gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Tipografi & Ortak Stiller --- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Vitrin: Hero Bölümü --- */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: titleFade 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes titleFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: block;
    margin-bottom: 1.5rem;
}

.main-logo {
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(234, 88, 12, 0.25));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-logo:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 12px 20px rgba(234, 88, 12, 0.4));
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Vitrin: Filtre Butonları --- */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.filter-btn:nth-child(1) { animation-delay: 0.1s; }
.filter-btn:nth-child(2) { animation-delay: 0.2s; }
.filter-btn:nth-child(3) { animation-delay: 0.3s; }
.filter-btn:nth-child(4) { animation-delay: 0.4s; }
.filter-btn:nth-child(5) { animation-delay: 0.5s; }
.filter-btn:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(234, 88, 12, 0.3);
}

/* --- Vitrin: Grid ve Tema Kartları --- */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.theme-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* Kartların gelişi için animasyon başlangıç değerleri */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.theme-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

.theme-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.theme-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.theme-card:hover .theme-img-wrapper img {
    transform: scale(1.05); /* Hoverda görseli hafif büyüt */
}

.theme-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.theme-category {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.theme-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--text-main);
}

.theme-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(234, 88, 12, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    width: fit-content;
}

.theme-price .price-val {
    font-size: 0.85rem;
    font-weight: 400;
    color: #e5e5e5;
    letter-spacing: 0;
}

.theme-price .currency {
    font-size: 0.85rem;
    color: #a3a3a3;
    margin-left: 6px;
    font-weight: 400;
}

.theme-link {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.theme-link:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Admin Panel Tasarımı --- */
.admin-body {
    background-color: #000000;
}

.admin-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.admin-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.admin-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.admin-card h3 {
    margin-bottom: 25px;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.5);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.btn-primary {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    width: 100%;
    background: #333333;
    color: white;
    border: 1px solid #444444;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #444444;
}

/* Admin Tablo Yapısı */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

td {
    font-size: 0.95rem;
    vertical-align: middle;
}

.table-img {
    width: 70px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.btn-delete {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-delete:hover {
    background-color: var(--danger);
    color: white;
}

.btn-edit {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #3b82f6;
    color: white;
}

.btn-export-theme {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 5px;
}

.btn-export-theme:hover {
    background-color: #8b5cf6;
    color: white;
}

/* --- Özel Modal Stilleri --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-modal h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.25rem;
}

.custom-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-danger {
    background: var(--danger) !important;
    border: none !important;
}

.btn-danger:hover {
    background: var(--danger-hover) !important;
}

/* ==========================================================================
   YENİ TEMA ADMİN PANELİ: YAN MENÜ & GÖRSEL YÜKLEME STİLLERİ
   ========================================================================== */

/* --- Layout Düzeni --- */
.admin-body {
    background-color: #030303;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-layout {
    display: block; /* Mobil varsayılanı */
}

/* --- Yan Menü (Sidebar) --- */
.admin-sidebar {
    background: linear-gradient(180deg, #09090b 0%, #030303 100%);
    border-right: 1px solid #1a1a1a;
    padding: 24px 16px;
    height: 100vh;
    width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 24px 12px;
    border-bottom: 1px solid #1f1f23;
    margin-bottom: 24px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: opacity 0.2s ease;
    outline: none;
}

.sidebar-brand:hover {
    opacity: 0.85;
}

.sidebar-brand:hover .sidebar-logo {
    transform: scale(1.04);
    transition: transform 0.2s ease;
}


.sidebar-logo {
    max-height: 38px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Menü Öğeleri --- */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.menu-divider {
    height: 1px;
    background-color: #1f1f23;
    margin: 16px 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.menu-item svg {
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.menu-item:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-item:hover svg {
    color: var(--text-main);
}

.menu-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.12) 0%, rgba(234, 88, 12, 0.01) 100%);
    border-left-color: var(--primary);
    font-weight: 600;
}

.menu-item.active svg {
    color: var(--primary);
}

/* --- Sidebar Alt Kısım --- */
.sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #1f1f23;
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a3a3a3;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid #1f1f23;
    transition: all 0.25s ease;
}

.logout-btn:hover {
    color: #ff4d4f;
    background-color: rgba(255, 77, 79, 0.1);
    border-color: rgba(255, 77, 79, 0.2);
    transform: translateY(-1px);
}

/* --- Sağ İçerik Alanı --- */
.admin-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex-grow: 1;
}

.admin-topbar {
    height: 70px;
    background-color: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

/* --- Topbar Sol Grup --- */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* --- Geri / İleri Navigasyon Butonları --- */
.nav-history-btns {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 3px;
}

.nav-hist-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-hist-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.nav-hist-btn:not(:disabled):active {
    background: rgba(234, 88, 12, 0.15);
    color: var(--primary);
    transform: scale(0.92);
}

.nav-hist-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.nav-hist-btn:not(:disabled):hover::after {
    content: attr(title);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e5e5e5;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 200;
    backdrop-filter: blur(8px);
}

/* --- Topbar Breadcrumb --- */
.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    min-width: 0;
}

.topbar-breadcrumb svg {
    flex-shrink: 0;
    opacity: 0.4;
}

.topbar-breadcrumb-root {
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.6;
}

.topbar-breadcrumb-current {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}


.topbar-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-content {
    padding: 30px;
    flex-grow: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.admin-card {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: contentFadeIn 0.4s ease forwards;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Görsel Yükleme Dropzone Stilleri --- */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background-color: rgba(234, 88, 12, 0.03);
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-prompt svg {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.upload-dropzone:hover .upload-prompt svg, .upload-dropzone.dragover .upload-prompt svg {
    color: var(--primary);
    transform: translateY(-3px);
}

.upload-prompt span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.upload-prompt span strong {
    color: var(--primary);
}

.upload-info {
    font-size: 0.75rem !important;
    color: #666 !important;
}

/* Yükleme Yükleniyor Spinner */
.upload-progress-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.upload-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(234, 88, 12, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: uploadSpin 0.8s linear infinite;
}

@keyframes uploadSpin {
    to { transform: rotate(360deg); }
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Görsel Önizleme */
.upload-preview {
    position: relative;
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-remove-image:hover {
    background-color: var(--danger);
    color: white;
    transform: scale(1.08);
}

/* --- Vitrin: Arama Çubuğu Tasarımı --- */
.search-container {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 15px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.05s;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 4px 8px 4px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-box:hover {
    border-color: rgba(234, 88, 12, 0.4);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15), var(--shadow);
    transform: translateY(-2px);
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-right: 12px;
    transition: var(--transition);
}

.search-box:focus-within .search-icon-wrapper {
    color: var(--primary);
    transform: scale(1.05);
}

.search-icon {
    width: 20px;
    height: 20px;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    padding: 12px 0;
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: none; /* JS ile dinamik olarak kontrol edilecek */
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 4px;
}

.clear-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.clear-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Media Queries ve Masaüstü/Mobil Düzen Geçişleri --- */
@media (min-width: 992px) {
    .admin-layout {
        display: flex;
        min-height: 100vh;
    }
    
    .admin-sidebar {
        width: 260px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
    }
    
    .admin-main {
        margin-left: 260px;
        flex-grow: 1;
        min-width: 0;
    }
    
    .mobile-toggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        z-index: 1001;
        width: 260px;
        height: 100%;
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.7);
    }
    
    .admin-sidebar.open {
        transform: translateX(260px);
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.open {
        display: block;
        opacity: 1;
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-main);
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        margin-right: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background-color: rgba(255, 255, 255, 0.02);
        transition: all 0.2s;
    }
    
    .mobile-toggle:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }
    
    .admin-topbar {
        padding: 0 20px;
    }
    
    .admin-content {
        padding: 20px;
    }
}

/* --- Combobox (Arama Destekli Açılır Liste) Stilleri --- */
.combobox-wrapper {
    position: relative;
    width: 100%;
}

.combobox-wrapper input {
    padding-right: 80px !important; /* Butonlar için sağ tarafta yer ayır */
}

.combobox-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.combobox-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.combobox-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.08);
}

.combobox-btn:focus {
    outline: none;
}

.combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
    animation: comboboxFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes comboboxFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.combobox-dropdown.show {
    display: block;
}

.combobox-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e5e5e5;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.combobox-item:last-child {
    border-bottom: none;
}

.combobox-item:hover, .combobox-item.highlighted {
    background-color: rgba(234, 88, 12, 0.1);
    color: var(--primary);
}

.combobox-item-icon {
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.combobox-no-results {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Yenileme butonu dönerken animasyon */
.combobox-btn.spinning svg {
    animation: comboboxSpin 0.8s linear infinite;
}

@keyframes comboboxSpin {
    to { transform: rotate(360deg); }
}

/* --- Sürükle Bırak Dosya Önizleme Stilleri --- */
.upload-preview-file {
    position: relative;
    width: 100%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px 45px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.file-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 250px;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-dropzone.invalid {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.03);
}

/* --- Glassmorphism Kurulum PopUp --- */
#installProgressPanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 3, 3, 0.65);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    z-index: 9999;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

#installProgressPanel[style*="display: block"] {
    display: flex !important;
}

.glass-modal-card {
    background: rgba(20, 20, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(234, 88, 12, 0.08);
    border-radius: 24px;
    padding: 35px;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: glassModalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes glassModalFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.glass-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.glass-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-modal-title h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: dotPulse 1.8s cubic-bezier(0.25, 0, 0, 1) infinite;
    opacity: 0.8;
}

@keyframes dotPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.progress-percent {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(234, 88, 12, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(234, 88, 12, 0.15);
}

.glass-modal-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.install-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: left;
}

.progress-bar-container-new {
    background: rgba(255, 255, 255, 0.05);
    height: 10px;
    border-radius: 99px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.progress-bar-fill {
    background: var(--gradient);
    width: 0%;
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.6);
}

.steps-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.steps-container::-webkit-scrollbar {
    width: 6px;
}

.steps-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.8;
}

.steps-list li {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: stepItemFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepItemFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: auto;
}

/* --- Silme Yukleniyor Modali --- */
.delete-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(239, 68, 68, 0.15);
    border-top-color: var(--danger);
    border-radius: 50%;
    animation: uploadSpin 0.8s linear infinite;
}

/* ==========================================================================
   DASHBOARD ANA SAYFA STİLLERİ
   ========================================================================== */

/* Hero / Karşılama Bölümü */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    animation: contentFadeIn 0.5s ease forwards;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dashboard-greeting {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dashboard-wave {
    font-size: 2.4rem;
    animation: waveAnim 2.5s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(234, 88, 12, 0.3));
}

@keyframes waveAnim {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(18deg); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(14deg); }
    80% { transform: rotate(-4deg); }
}

.dashboard-welcome {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.dashboard-username {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-dot-live {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* İstatistik Kartları */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.stat-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    animation: contentFadeIn 0.5s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-card.stat-themes:hover { border-color: rgba(234, 88, 12, 0.4); }
.stat-card.stat-categories:hover { border-color: rgba(245, 158, 11, 0.4); }
.stat-card.stat-user:hover { border-color: rgba(59, 130, 246, 0.4); }
.stat-card.stat-store:hover { border-color: rgba(16, 185, 129, 0.4); }

.stat-card.stat-themes .stat-card-glow { background: radial-gradient(circle at top right, rgba(234, 88, 12, 0.12) 0%, transparent 60%); }
.stat-card.stat-categories .stat-card-glow { background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12) 0%, transparent 60%); }
.stat-card.stat-user .stat-card-glow { background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12) 0%, transparent 60%); }
.stat-card.stat-store .stat-card-glow { background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12) 0%, transparent 60%); }

.stat-card-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.stat-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-themes .stat-icon-wrap { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.stat-categories .stat-icon-wrap { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-user .stat-icon-wrap { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-store .stat-icon-wrap { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Hızlı İşlem Bölüm Başlığı */
.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 4px;
}

.dashboard-section-title svg {
    color: var(--primary);
}

/* Hızlı İşlem Kartları */
.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding-bottom: 20px;
}

.dash-action-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: contentFadeIn 0.5s ease forwards;
    opacity: 0;
}

.dash-action-card:nth-child(1) { animation-delay: 0.1s; }
.dash-action-card:nth-child(2) { animation-delay: 0.15s; }
.dash-action-card:nth-child(3) { animation-delay: 0.2s; }
.dash-action-card:nth-child(4) { animation-delay: 0.25s; }
.dash-action-card:nth-child(5) { animation-delay: 0.3s; }
.dash-action-card:nth-child(6) { animation-delay: 0.35s; }

.dash-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--ac-rgb, 234, 88, 12), 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dash-action-card:hover {
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-action-card:hover::before {
    opacity: 1;
}

.dash-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--ac);
    transition: background 0.25s ease, transform 0.25s ease;
}

.dash-action-card:hover .dash-action-icon {
    background: color-mix(in srgb, var(--ac) 12%, transparent);
    border-color: color-mix(in srgb, var(--ac) 25%, transparent);
    transform: scale(1.08);
}

.dash-action-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dash-action-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.dash-action-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-action-arrow {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.dash-action-card:hover .dash-action-arrow {
    color: var(--ac, var(--primary));
    transform: translateX(4px);
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: 24px 20px;
    }
    .dashboard-welcome {
        font-size: 1.3rem;
    }
    .dashboard-wave {
        font-size: 1.8rem;
    }
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-number {
        font-size: 1.3rem;
    }
    .dashboard-actions-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-card-inner {
        padding: 16px;
        gap: 12px;
    }
}

/* --- Topbar Responsive --- */
@media (max-width: 600px) {
    .admin-topbar {
        padding: 0 14px;
    }
    .topbar-breadcrumb-root,
    .topbar-breadcrumb svg {
        display: none;
    }
    .topbar-breadcrumb-current {
        font-size: 0.82rem;
    }
    .nav-history-btns {
        gap: 0;
    }
}

@media (max-width: 400px) {
    .topbar-breadcrumb {
        display: none;
    }
}
