/* AkcanPOS v3 Web Panel - Personel İstatistikleri CSS */
/* Mobil uygulama ile birebir uyumlu personel istatistik sistemi tasarımı */

/* Ana Container */
.staff-statistics-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.staff-statistics-header {
    margin-bottom: 30px;
    text-align: center;
}

.staff-statistics-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.staff-statistics-header h1 i {
    color: #3498db;
    margin-right: 10px;
}

.staff-statistics-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* Filtreler Bölümü */
.filters-section {
    margin-bottom: 30px;
}

.filter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e8ecef;
}

.filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.filter-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.filter-header i {
    margin-right: 10px;
    color: #fff;
}

.filter-content {
    padding: 25px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

/* Personel Dropdown */
.staff-dropdown {
    position: relative;
    margin-bottom: 20px;
}

.staff-select {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    color: #2c3e50;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.staff-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.staff-select:focus+.dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Zaman Dilimi Butonları */
.time-period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.period-btn {
    padding: 12px 20px;
    border: 2px solid #e8ecef;
    border-radius: 25px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 100px;
    text-align: center;
}

.period-btn:hover {
    border-color: #3498db;
    background: #ecf0f1;
    transform: translateY(-2px);
}

.period-btn.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Özel Tarih Aralığı */
.custom-date-range {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e8ecef;
}

.date-input-group {
    flex: 1;
}

.date-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.date-input-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* İstatistikleri Hesapla Butonu */
.calculate-button-container {
    text-align: center;
    margin-top: 25px;
}

.calculate-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    min-width: 200px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn i {
    margin-right: 10px;
}

/* İstatistik Sonuçları */
.statistics-results {
    margin-top: 30px;
}

.staff-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.staff-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.staff-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.staff-details p {
    margin: 0 0 5px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.period-info {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* İstatistik Kartları Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card.orders-created .stat-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-card.orders-picked .stat-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.stat-card.orders-delivered .stat-icon {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.stat-card.orders-cancelled .stat-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-card.revenue .stat-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.stat-card.performance-score .stat-icon {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.stat-info {
    flex: 1;
}

.stat-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    line-height: 1;
}

.stat-unit {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Detaylı İstatistikler */
.detailed-stats {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecef;
    margin-top: 30px;
}

.detailed-stats h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.detailed-stats h4 i {
    color: #3498db;
    margin-right: 10px;
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.detail-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.detail-stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-stat-header i {
    margin-right: 8px;
    color: #6c757d;
    font-size: 1.1rem;
}

.detail-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

/* Durumlar - Personel Seçilmedi, Hata, Yükleniyor */
.no-staff-selected,
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecef;
}

.no-staff-selected i,
.error-message i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    display: block;
}

.error-message i {
    color: #e74c3c;
}

.no-staff-selected h3,
.error-message h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-staff-selected p,
.error-message p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

/* Yükleniyor Durumu */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8ecef;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-text p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .staff-statistics-container {
        padding: 15px;
    }

    .staff-statistics-header h1 {
        font-size: 1.8rem;
    }

    .filter-content {
        padding: 20px;
    }

    .time-period-buttons {
        justify-content: center;
    }

    .period-btn {
        flex: 1;
        min-width: auto;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .custom-date-range {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        gap: 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .staff-info-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .detail-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detailed-stats {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .staff-statistics-header h1 {
        font-size: 1.5rem;
    }

    .staff-statistics-header p {
        font-size: 1rem;
    }

    .filter-content {
        padding: 15px;
    }

    .calculate-btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 20px;
    }

    .period-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}