/**
 * Bisandvic - Admin Custom CSS
 * Dokunmatik ekran uyumlu admin paneli stilleri
 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Genel Stiller */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dokunmatik Uyumlu Butonlar */
.btn {
    min-height: 44px;
    min-width: 44px;
    font-size: 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Kartlar */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

/* Compact İstatistik Kartları */
.stat-card-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.stat-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: white !important;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    color: white !important;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    color: white !important;
}

/* Compact Kartlar */
.card-compact {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
    height: 100%;
}

.card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.card-body-compact {
    padding: 1rem 1.25rem;
}

/* Compact Butonlar */
.btn-compact {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Geniş Kartlar */
.card-compact-wide {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
    height: auto;
    min-height: auto;
}

.card-compact-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Geniş Butonlar */
.btn-compact-wide {
    padding: 18px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.btn-compact-wide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Aktivite Öğeleri */
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.2rem;
}

.activity-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Touch-Friendly Sidebar */
.touch-sidebar {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%) !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.touch-sidebar.collapsed {
    transform: translateX(-100%);
}

.touch-sidebar .sidebar-brand {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.touch-sidebar .sidebar-brand img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.touch-navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.touch-navbar .navbar-brand {
    flex-shrink: 0;
    order: 1;
}

.navbar-brand-large {
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.navbar-brand-large i {
    font-size: 2.2rem !important;
}

.touch-navbar .navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.touch-navbar .navbar-user {
    order: 3;
    flex-shrink: 0;
}

.touch-toggle {
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.touch-toggle:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.sidebar-nav-container {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav-container .nav-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 14px;
    margin: 0 12px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-height: 48px;
    gap: 12px;
    min-width: auto;
}

.nav-button:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nav-button.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.nav-button.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
    border-radius: 0 0 3px 3px;
}

/* Yeni Sipariş Butonu Özel Stili */
.nav-button-primary {
    background: linear-gradient(135deg, var(--accent-color, #28a745) 0%, #20c997 100%) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.nav-button-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4) !important;
}

.nav-button-primary .nav-icon {
    background: rgba(255,255,255,0.2) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Siparişler Sayfası Stilleri */
.stat-card-compact {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.stat-card-compact.stat-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.stat-card-compact.stat-primary .stat-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-card-compact.stat-success .stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.stat-card-compact.stat-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.stat-card-compact.stat-revenue .stat-icon {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #212529;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kompakt Kart Stilleri */
.card-compact-wide {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e9ecef;
    padding: 16px 20px;
    border-radius: 10px 10px 0 0;
}

.card-header-compact h5 {
    margin: 0;
    font-weight: 700;
    color: #495057;
    font-size: 18px;
}

.card-body-compact {
    padding: 20px;
}

/* Sipariş Kartları - Grid Layout */
.order-card-grid {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Kategori Kartları - Grid Layout */
.category-card-grid {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.category-card-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.category-card-header {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.category-status {
    font-size: 0.8rem;
}

.category-card-body {
    padding: 1rem;
    flex: 1;
}

.category-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.category-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.category-card-actions {
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Müşteri Kartları - Grid Layout */
.customer-card-grid {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.customer-card-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.customer-card-header {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.customer-code {
    font-size: 0.8rem;
    opacity: 0.9;
}

.customer-card-body {
    padding: 1rem;
    flex: 1;
}

.customer-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.customer-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.customer-card-actions {
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Filtre Input ve Select Stilleri */
.filter-input {
    width: 200px;
    height: 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.filter-select {
    width: 150px;
    height: 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.order-card-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.order-card-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* Durum Bazlı Arka Plan Renkleri */
.order-status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border-color: #ffc107 !important;
}

.order-status-pending::before {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.order-status-confirmed {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    border-color: #17a2b8 !important;
}

.order-status-confirmed::before {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important;
}

.order-status-preparing {
    background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%) !important;
    border-color: #007bff !important;
}

.order-status-preparing::before {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.order-status-shipped {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border-color: #28a745 !important;
}

.order-status-shipped::before {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.order-status-delivered {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%) !important;
    border-color: #6c757d !important;
}

.order-status-delivered::before {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.order-status-cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    border-color: #dc3545 !important;
}

.order-status-cancelled::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #e9ecef;
}

.order-number {
    font-size: 11px;
    font-weight: 700;
    color: #212529;
}

.status-badge {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 6px;
    font-weight: 600;
}

.order-card-body {
    flex: 1;
    margin-bottom: 4px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.order-info-item {
    margin-bottom: 3px;
}

.info-label {
    font-size: 7px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}

.info-value {
    font-size: 10px;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-value.amount {
    color: #28a745;
    font-size: 11px;
    font-weight: 800;
}

/* Müşteri Bilgileri - Kompakt */
.info-value .customer-name {
    font-size: 10px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 1px;
    white-space: normal;
}

.info-value .customer-phone {
    font-size: 9px;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
    white-space: normal;
}

.info-value .customer-address {
    white-space: normal;
}

.item-count {
    font-size: 8px;
    padding: 1px 3px;
    border-radius: 4px;
}

.order-card-actions {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    margin-top: auto;
}

.order-card-actions .btn {
    flex: 1;
    font-size: 8px;
    padding: 2px 4px;
    font-weight: 600;
    min-width: 0;
}

/* Hızlı Durum Butonları */
.status-buttons {
    display: flex;
    gap: 2px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.status-buttons .btn {
    flex: 1;
    min-width: 30px;
    height: 24px;
    padding: 2px 4px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.status-buttons .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.status-buttons .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.status-buttons .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.status-buttons .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    border: none;
}

.status-buttons .btn-dark {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
}

.status-buttons .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.status-buttons .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #212529;
}

/* Modal Tasarımı - Kartlara Uygun */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.modal-body {
    padding: 0;
    background: transparent;
}

/* Modal Kapatma Butonu */
.btn-close-lg {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-lg:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Sipariş Detay Kartları */
.order-detail-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px;
    margin: 0;
    box-shadow: none;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.order-detail-number {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.order-detail-status {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.order-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
}

.order-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.order-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.order-detail-value.customer-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.order-detail-value.customer-phone {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.order-detail-value.amount {
    font-size: 20px;
    font-weight: 800;
    color: #28a745;
}

/* Ürün Listesi */
.order-items-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.order-items-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.order-items-title i {
    margin-right: 8px;
    color: #007bff;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.order-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    flex: 1;
    display: flex;
    align-items: center;
}

.order-item-name img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-item-quantity {
    font-size: 12px;
    color: #6c757d;
    margin: 0 10px;
}

.order-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #28a745;
    min-width: 80px;
    text-align: right;
}

.order-total {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-size: 16px;
    font-weight: 700;
}

.order-total-amount {
    font-size: 20px;
    font-weight: 800;
}

/* Modal Durum Bazlı Renklendirme */
.modal-content.order-status-pending {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

.modal-content.order-status-pending .order-detail-number,
.modal-content.order-status-pending .order-detail-value,
.modal-content.order-status-pending .order-items-title {
    color: #856404 !important;
}

.modal-content.order-status-pending .order-detail-label {
    color: #6c5a00 !important;
}

.modal-content.order-status-confirmed {
    border: 2px solid #17a2b8 !important;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
}

.modal-content.order-status-confirmed .order-detail-number,
.modal-content.order-status-confirmed .order-detail-value,
.modal-content.order-status-confirmed .order-items-title {
    color: #0c5460 !important;
}

.modal-content.order-status-confirmed .order-detail-label {
    color: #0a4a52 !important;
}

.modal-content.order-status-preparing {
    border: 2px solid #007bff !important;
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%) !important;
}

.modal-content.order-status-preparing .order-detail-number,
.modal-content.order-status-preparing .order-detail-value,
.modal-content.order-status-preparing .order-items-title {
    color: #004085 !important;
}

.modal-content.order-status-preparing .order-detail-label {
    color: #003366 !important;
}

.modal-content.order-status-shipped {
    border: 2px solid #28a745 !important;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
}

.modal-content.order-status-shipped .order-detail-number,
.modal-content.order-status-shipped .order-detail-value,
.modal-content.order-status-shipped .order-items-title {
    color: #155724 !important;
}

.modal-content.order-status-shipped .order-detail-label {
    color: #0f4a1a !important;
}

.modal-content.order-status-delivered {
    border: 2px solid #6c757d !important;
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%) !important;
}

.modal-content.order-status-delivered .order-detail-number,
.modal-content.order-status-delivered .order-detail-value,
.modal-content.order-status-delivered .order-items-title {
    color: #495057 !important;
}

.modal-content.order-status-delivered .order-detail-label {
    color: #343a40 !important;
}

.modal-content.order-status-cancelled {
    border: 2px solid #dc3545 !important;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
}

.modal-content.order-status-cancelled .order-detail-number,
.modal-content.order-status-cancelled .order-detail-value,
.modal-content.order-status-cancelled .order-items-title {
    color: #721c24 !important;
}

.modal-content.order-status-cancelled .order-detail-label {
    color: #5a1a1a !important;
}

/* Modal Güncelleme Butonları */
.modal-status-buttons {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-status-buttons .btn {
    flex: 0 0 auto;
    min-width: 50px;
    height: 40px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.modal-status-buttons .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-status-buttons .btn-success { /* Confirmed */
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.modal-status-buttons .btn-primary { /* Preparing */
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.modal-status-buttons .btn-info { /* Shipped */
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
}

.modal-status-buttons .btn-dark { /* Delivered */
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.modal-status-buttons .btn-danger { /* Cancelled */
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.modal-status-buttons .btn-warning { /* Backward status */
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .order-card-actions {
        flex-direction: column;
    }
    
    .order-card-actions .btn {
        width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        width: 65px;
        height: 38px;
        font-size: 14px;
        padding: 0 8px;
    }
    
    .filter-date {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 8px;
    }
}

/* İstatistikler Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    min-height: 200px;
}

/* Minimal İstatistik Kartları */
.stat-card-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-card-minimal i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #6c757d;
}

.stat-card-minimal span {
    font-size: 24px;
    font-weight: 800;
    color: #212529;
}

/* Renkli Varyantlar */
.stat-card-minimal.stat-warning {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.stat-card-minimal.stat-warning i {
    color: #856404;
}

.stat-card-minimal.stat-warning span {
    color: #856404;
}

.stat-card-minimal.stat-primary {
    border-color: #007bff;
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
}

.stat-card-minimal.stat-primary i {
    color: #004085;
}

.stat-card-minimal.stat-primary span {
    color: #004085;
}

.stat-card-minimal.stat-success {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.stat-card-minimal.stat-success i {
    color: #155724;
}

.stat-card-minimal.stat-success span {
    color: #155724;
}

.stat-card-minimal.stat-info {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.stat-card-minimal.stat-info i {
    color: #0c5460;
}

.stat-card-minimal.stat-info span {
    color: #0c5460;
}

.stat-card-minimal.stat-revenue {
    border-color: #6f42c1;
    background: linear-gradient(135deg, #e2d9f3 0%, #d1c4e9 100%);
}

.stat-card-minimal.stat-revenue i {
    color: #4a148c;
}

.stat-card-minimal.stat-revenue span {
    color: #4a148c;
}

/* Minimal Filtreler */
.filter-minimal {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
    position: relative;
    padding: 0 10px;
}

.filter-btn sup {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.filter-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.filter-btn.filter-clear {
    border-color: #dc3545;
    color: #dc3545;
}

.filter-btn.filter-clear:hover {
    background: #dc3545;
    color: white;
}

.filter-date {
    width: 44px;
    height: 44px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #6c757d;
    font-size: 14px;
    padding: 0;
    text-align: center;
    transition: all 0.2s ease;
}

.filter-date:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-date:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Minimal Filtre Stilleri */
.filter-compact {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
}

.form-label-sm {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    height: 32px !important;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}

.form-select-sm.filter-input {
    padding: 4px 8px;
}

.form-control-sm.filter-input {
    padding: 4px 8px;
}

.btn-sm.filter-input {
    padding: 4px 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .stat-card-compact {
        padding: 14px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .stat-card-compact {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .order-card {
        padding: 16px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        min-width: 100%;
    }
}

.sidebar-nav-container .nav-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-nav-container .nav-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    flex: 1;
}

/* Ana İçerik Alanı */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    padding-bottom: 60px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

/* Sidebar Toggle Butonu */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: none; /* Varsayılan olarak gizli */
}

.sidebar-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 60px;
}

.user-dropdown:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.2;
}

/* Form Elemanları */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    font-size: 16px;
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Tablolar */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-color: #f8f9fa;
}

/* Alert Mesajları */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    margin-bottom: 2rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Badge'ler */
.badge {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-body {
    padding: 2rem;
}

/* Touch-Friendly Responsive Design */
@media (max-width: 1200px) {
    .touch-sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
    }
    
    .sidebar-nav-container .nav-button {
        margin: 0 12px;
        padding: 16px 14px;
    }
    
    .sidebar-nav-container .nav-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .sidebar-nav-container .nav-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav-container {
        justify-content: center;
        gap: 10px;
    }
    
    .nav-button {
        min-width: 90px;
        min-height: 110px;
        padding: 20px 16px;
    }
    
    .nav-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .nav-text {
        font-size: 0.85rem;
    }
    
    .user-dropdown {
        min-height: 50px;
        padding: 8px 12px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-role {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .touch-sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .touch-sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-nav-container .nav-button {
        margin: 0 20px;
        padding: 18px 18px;
        min-height: 75px;
    }
    
    .sidebar-nav-container .nav-icon {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .sidebar-nav-container .nav-text {
        font-size: 1.1rem;
    }
}
    
    .user-dropdown {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }


@media (max-width: 576px) {
    .touch-navbar {
        padding: 0.6rem 0;
    }
    
    .nav-button {
        min-height: 80px;
        padding: 20px 18px;
    }
    
    .nav-icon {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
        margin-right: 20px;
    }
    
    .nav-text {
        font-size: 1.1rem;
    }
    
    .user-dropdown {
        min-height: 45px;
        padding: 10px 12px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-role {
        font-size: 0.65rem;
    }
}

/* Touch-Friendly Focus States */
.nav-button:focus {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.nav-button:focus-visible {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.user-dropdown:focus {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.user-dropdown:focus-visible {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

/* Compact Cards Responsive */
@media (max-width: 768px) {
    .stat-card-compact {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .card-header-compact {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-body-compact {
        padding: 1rem;
    }
    
    .btn-compact {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-compact-wide {
        padding: 14px 22px;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .activity-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .activity-title {
        font-size: 0.9rem;
    }
    
    .activity-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .stat-card-compact {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .card-header-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .card-body-compact {
        padding: 0.75rem;
    }
    
    .btn-compact {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-compact-wide {
        padding: 12px 18px;
        font-size: 0.9rem;
        min-height: 45px;
    }
    
    .activity-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .activity-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .activity-title {
        font-size: 0.85rem;
    }
    
    .activity-desc {
        font-size: 0.75rem;
    }
}



/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

