/**
 * Maaş Geçmişi Stilleri
 */

/* Grafik Container */
.salary-history-section {
    margin-top: 1rem;
}

#salaryHistoryChart {
    min-height: 350px;
    padding: 1rem 1rem 1rem 0.5rem;
    overflow: visible;
}

/* Y ekseni etiketlerinin kesilmemesi için ApexCharts alanına sol boşluk */
#salaryHistoryChart .apexcharts-inner {
    margin-left: 0;
}
#salaryHistoryChart .apexcharts-yaxis-label {
    transform: translate(0, 0);
}

/* İstatistik Kartları Hover Efektleri */
.salary-history-section .card {
    transition: all 0.3s ease;
}

.salary-history-section .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Badge Animasyonları */
.salary-history-section .badge {
    transition: all 0.2s ease;
}

.salary-history-section .badge:hover {
    transform: scale(1.05);
}

/* Tablo Satır Hover */
.salary-history-section tbody tr {
    transition: background-color 0.2s ease;
}

.salary-history-section tbody tr:hover {
    background-color: rgba(var(--primary-50-rgb, 241, 245, 249), 0.3);
}

/* Excel Butonu */
.salary-history-section .btn-success {
    transition: all 0.2s ease;
}

.salary-history-section .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    #salaryHistoryChart {
        min-height: 280px;
    }
    
    .salary-history-section .table-responsive {
        font-size: 0.875rem;
    }
    
    .salary-history-section .badge {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .salary-history-section .card-body {
        padding: 1rem !important;
    }
    
    .salary-history-section h6 {
        font-size: 0.9rem;
    }
    
    .salary-history-section .text-sm {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
.salary-chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    color: var(--secondary-light);
}

.salary-chart-loading iconify-icon {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Özelleştirme */
.apexcharts-tooltip {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.apexcharts-tooltip-title {
    background: #f3f4f6 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.5rem !important;
    font-weight: 600 !important;
}

.apexcharts-tooltip-text-y-value {
    font-weight: 600 !important;
    color: var(--primary-600) !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .salary-history-section .card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .salary-history-section .table {
        color: #f9fafb;
    }
    
    .apexcharts-tooltip {
        background: #1f2937 !important;
        border-color: #374151 !important;
    }
    
    .apexcharts-tooltip-title {
        background: #374151 !important;
        border-bottom-color: #4b5563 !important;
        color: #f9fafb !important;
    }
}
