/* DESi Teklif Sistemi - Pastel & Sade Kurumsal Admin Teması */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --admin-bg: #f6f8fb;
    --admin-surface: #ffffff;
    --admin-text: #1e293b;
    --admin-muted: #64748b;
    --admin-border: #e2e8f0;
    --admin-accent: #475569;
    --admin-accent-soft: #f1f5f9;
    --admin-primary: #3b82f6;
    --admin-primary-soft: #eff6ff;
    --desi-red: #d92d20;
    --desi-red-soft: #fef2f2;
    --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
    --card-hover-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--admin-bg) !important;
    color: var(--admin-text);
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1 0 auto;
    padding-bottom: 2.5rem;
}

.main-wrapper > .container-fluid {
    background: transparent !important;
    min-height: auto !important;
    max-width: 1440px;
    margin: 0 auto;
}

/* Pastel & Ferah Beyaz Üst Menü (Header) */
.desi-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--admin-border);
    padding: 0.6rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.desi-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-right: 1.5rem;
}

.desi-navbar .navbar-brand img {
    height: 28px;
    width: auto;
}

.desi-navbar .brand-divider {
    width: 1px;
    height: 22px;
    background-color: var(--admin-border);
}

.desi-navbar .brand-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--admin-muted);
    letter-spacing: 0.2px;
}

/* Menü Linkleri - Tek Satır & Pastel */
.desi-navbar .navbar-nav .nav-link {
    color: #475569 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.48rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.desi-navbar .navbar-nav .nav-link i {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.15s ease;
}

.desi-navbar .navbar-nav .nav-link:hover {
    color: #0f172a !important;
    background-color: #f8fafc;
}

.desi-navbar .navbar-nav .nav-link:hover i {
    color: #475569;
}

.desi-navbar .navbar-nav .nav-link.active {
    color: #1e293b !important;
    font-weight: 600;
    background-color: #f1f5f9;
}

.desi-navbar .navbar-nav .nav-link.active i {
    color: var(--desi-red);
}

/* Yeni Teklif Butonu - Pastel ve Yumuşak */
.btn-new-quote {
    background-color: #eff6ff;
    color: #2563eb !important;
    border: 1px solid #bfdbfe;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem !important;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-new-quote:hover,
.btn-new-quote.active {
    background-color: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
}

/* Sağ Taraf İkon Butonları */
.desi-navbar .nav-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #64748b !important;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    transition: all 0.15s ease;
    padding: 0 !important;
    text-decoration: none;
}

.desi-navbar .nav-icon-btn:hover,
.desi-navbar .nav-icon-btn.active {
    color: #0f172a !important;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.desi-navbar .nav-icon-btn.logout-btn {
    color: #dc2626 !important;
    background: #fef2f2;
    border-color: #fecaca;
}

.desi-navbar .nav-icon-btn.logout-btn:hover {
    background: #fee2e2;
    color: #b91c1c !important;
}

.desi-navbar .user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 0.38rem 0.75rem;
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.desi-navbar .user-badge:hover,
.desi-navbar .user-badge.active {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

/* Kartlar ve Gölgeler */
.card {
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow) !important;
    background-color: var(--admin-surface);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow) !important;
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Pastel Rozet ve Kart Renkleri */
.bg-soft-primary   { background-color: #eff6ff !important; color: #2563eb !important; }
.bg-soft-success   { background-color: #f0fdf4 !important; color: #16a34a !important; }
.bg-soft-warning   { background-color: #fffbeb !important; color: #d97706 !important; }
.bg-soft-danger    { background-color: #fef2f2 !important; color: #dc2626 !important; }
.bg-soft-info      { background-color: #f0f9ff !important; color: #0284c7 !important; }
.bg-soft-secondary { background-color: #f1f5f9 !important; color: #475569 !important; }

.btn-soft-primary {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-weight: 600;
}
.btn-soft-primary:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-soft-info   { background: #f0f9ff; color: #0284c7; }
.btn-soft-danger { background: #fef2f2; color: #dc2626; }
.btn-soft-dark   { background: #f1f5f9; color: #334155; }

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.btn-icon.delete-btn,
.btn-icon.btn-action-danger:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.btn-icon.btn-action-primary:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

/* Tablo Stilleri */
.table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--admin-muted);
    background-color: #f8fafc;
    border-bottom: 1px solid var(--admin-border);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.table tbody td {
    vertical-align: middle;
    border-color: #f1f5f9;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Form Elemanları */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--admin-border);
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.select2-container--bootstrap-5 .select2-selection {
    border-radius: 8px !important;
    border-color: var(--admin-border) !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

/* Footer */
.desi-footer {
    background: #ffffff;
    border-top: 1px solid var(--admin-border);
    padding: 1rem 0;
    font-size: 0.82rem;
    color: var(--admin-muted);
    margin-top: auto;
}

.animate-pulse {
    animation: desiPulse 2s infinite;
}
@keyframes desiPulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ==========================================================================
   Standart Ortak Sayfa Başlığı ve Breadcrumb Tasarımı (Kompakt & Bütünleşik)
   ========================================================================== */
.page-header-bar {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.desi-breadcrumb {
    font-size: 0.72rem;
    font-weight: 500;
}

.desi-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.desi-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.desi-breadcrumb .breadcrumb-item a:hover {
    color: var(--admin-primary);
}

.desi-breadcrumb .breadcrumb-item.active {
    color: #334155;
    font-weight: 600;
}

.desi-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1;
    padding: 0 0.35rem;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.page-subtitle {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 400;
}

.page-header-actions .btn {
    font-size: 0.82rem;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.product-code-badge {
    font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.category-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.2px;
    display: inline-block;
}

.product-img-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Kartlar */
.card {
    background: #ffffff !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1rem 1.25rem !important;
}

/* İstatistik Kartları */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* Arama Çubuğu */
.search-box .input-group-text {
    background-color: #f8fafc !important;
    border: 1px solid var(--admin-border) !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    color: #94a3b8 !important;
}

.search-box .form-control {
    background-color: #f8fafc !important;
    border: 1px solid var(--admin-border) !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 0.88rem !important;
    padding: 0.5rem 0.85rem !important;
}

.search-box .form-control:focus {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

/* Tablolar */
.custom-table {
    margin-bottom: 0 !important;
}

.custom-table thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--admin-border) !important;
    padding: 0.75rem 1rem !important;
}

.custom-table tbody td {
    padding: 0.85rem 1rem !important;
    font-size: 0.86rem !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

.custom-table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Buton Grupları ve Filtre Butonları */
.filter-btn-group {
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 2px;
    display: inline-flex;
}

.filter-btn-group .btn {
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.75rem !important;
    color: #64748b !important;
    background: transparent !important;
}

.filter-btn-group .btn.active,
.filter-btn-group .btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}
