/* ========================================
   DASHBOARD STYLES - Modern ve Uyumlu Renkler
   ======================================== */

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    gap: 20px;
}

/* Page Layout - Scroll için alt boşluk */
.page-layout-single {
    padding-bottom: 40px;
}

/* Ana İstatistik Kartları - Modern Renkler */
.main-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.main-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.main-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Ana İstatistik Kartları - Modern Soft Renkler */
.main-stat-card.products {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    color: #0c4a6e;
    border-left: 4px solid #0ea5e9;
}

.main-stat-card.stock {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    color: #14532d;
    border-left: 4px solid #22c55e;
}

.main-stat-card.sales {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e9d5ff 100%);
    color: #581c87;
    border-left: 4px solid #a855f7;
}

.main-stat-card.alerts {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-trend {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-trend.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stat-trend.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.stat-trend.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.stat-content h2 {
    margin: 0 0 8px 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-content p {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.stat-content small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Günlük Özet Kartları - Modern Renkler */
.daily-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.daily-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.daily-card:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.daily-card.today-sales {
    border-left: 4px solid #0ea5e9;
}

.daily-card.month-sales {
    border-left: 4px solid #22c55e;
}

.daily-card.pending-transfers {
    border-left: 4px solid #f59e0b;
}

.daily-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.daily-content {
    text-align: center;
}

.daily-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.daily-amount {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Ana Dashboard İçeriği */
.dashboard-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-left-panel, .dashboard-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Widget'lar Yan Yana */
.dashboard-widgets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Alt Panel */
.dashboard-bottom-panel {
    margin-top: 24px;
    margin-bottom: 40px; /* Scroll için alt boşluk */
}

/* Widget'lar - Modern Renkler */
.dashboard-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.widget-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.widget-content {
    padding: 20px 24px 24px;
}

/* Alert Listesi - Modern Renkler */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.alert-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-product {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.product-barcode {
    font-size: 0.8rem;
    color: #64748b;
}

.alert-details {
    text-align: right;
}

.stock-info {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.current-stock {
    color: #ef4444;
}

.min-stock {
    color: #64748b;
}

.warehouse-name {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.alert-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.alert-status.critical {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
}

.alert-status.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #f59e0b;
}

.alert-status.low {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #10b981;
}

/* Sales Listesi - Modern Renkler */
.sales-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sale-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.sale-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sale-info {
    flex: 1;
}

.sale-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sale-date {
    font-size: 0.8rem;
    color: #64748b;
}

.sale-details {
    text-align: right;
}

.sale-warehouse {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}

.sale-amount {
    font-weight: 600;
    color: #10b981;
    font-size: 0.9rem;
}

.sale-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sale-status.completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #10b981;
}

.sale-status.pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #f59e0b;
}

.sale-status.cancelled {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
}

/* Hızlı İşlemler - Modern Renkler */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hızlı İşlem Butonları - Modern Renkler */
.quick-actions .rz-button[data-button-style="Success"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    color: #14532d !important;
    border: 1px solid #bbf7d0 !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}

.quick-actions .rz-button[data-button-style="Success"]:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
}

.quick-actions .rz-button[data-button-style="Info"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #0c4a6e !important;
    border: 1px solid #bae6fd !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}

.quick-actions .rz-button[data-button-style="Info"]:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
}

.quick-actions .rz-button[data-button-style="Secondary"] {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
    color: #581c87 !important;
    border: 1px solid #e9d5ff !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.1) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}

.quick-actions .rz-button[data-button-style="Secondary"]:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2) !important;
}

/* Sistem Durumu - Modern Renkler */
.system-status {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 16px 12px;
    margin: 0 -12px;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #1e293b;
}

.status-label .rz-icon {
    color: #64748b;
    font-size: 1.1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator.online {
    color: #10b981;
}

.status-indicator.online .rz-icon {
    color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.status-time {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Son Aktiviteler - Modern Renkler */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.activity-icon.purchase {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-icon.sale {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-icon.transfer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-icon.inventory {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.activity-details {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Empty State - Modern Renkler */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-main-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widgets-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .daily-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widgets-row {
        grid-template-columns: 1fr;
    }
}
