/* ═══════════════════════════════════════
   Sales Daily Reports - Plugin Styles
   ═══════════════════════════════════════ */

/* KPI Cards */
.sdr-kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}
.sdr-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Funnel Chart */
.sdr-funnel-stage {
    transition: opacity 0.3s ease;
}
.sdr-funnel-stage:hover {
    opacity: 0.85;
}
.sdr-funnel-stage .rounded {
    transition: width 0.6s ease;
    border-radius: 6px !important;
}

/* Leaderboard */
#sdr-leaderboard-table tbody tr:nth-child(1) {
    background-color: rgba(255, 193, 7, 0.08);
}
#sdr-leaderboard-table tbody tr:nth-child(2) {
    background-color: rgba(108, 117, 125, 0.06);
}
#sdr-leaderboard-table tbody tr:nth-child(3) {
    background-color: rgba(220, 53, 69, 0.05);
}

/* Badge Cards */
.sdr-badge-card {
    min-width: 120px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}
.sdr-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
.sdr-badge-icon {
    font-size: 2rem;
}

/* Progress Bars */
.progress {
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9ecef;
}
.progress-bar {
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 0.8s ease;
}

/* RTL Adjustments */
[dir="rtl"] .border-start,
.border-start {
    border-right: 4px solid !important;
    border-left: none !important;
}
[dir="rtl"] .border-start.border-primary { border-right-color: var(--bs-primary) !important; }
[dir="rtl"] .border-start.border-info { border-right-color: var(--bs-info) !important; }
[dir="rtl"] .border-start.border-success { border-right-color: var(--bs-success) !important; }
[dir="rtl"] .border-start.border-warning { border-right-color: var(--bs-warning) !important; }
[dir="rtl"] .border-start.border-danger { border-right-color: var(--bs-danger) !important; }
[dir="rtl"] .border-start.border-dark { border-right-color: var(--bs-dark) !important; }

/* Table Improvements */
.table th {
    white-space: nowrap;
    font-size: 0.85rem;
}
.table td {
    vertical-align: middle;
}

/* Card Headers */
.card-header h5,
.card-header h6 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Period Toggle Buttons */
.btn-group [data-period] {
    min-width: 80px;
}

/* Missing alert animation */
.alert-danger, .alert-warning {
    animation: sdr-fadeIn 0.5s ease;
}
@keyframes sdr-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Decision form collapse transition */
#sdr-decision-form {
    transition: all 0.3s ease;
}

/* Settings toggles */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}
.form-switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sdr-kpi-card .fs-3 {
        font-size: 1.4rem !important;
    }
    .sdr-kpi-card .fs-4 {
        font-size: 1.1rem !important;
    }
    .btn-group [data-period] {
        min-width: 60px;
        font-size: 0.85rem;
    }
}
