
/* Main Container */
.dte-reports-premium {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Premium Header */
.dte-premium-header {
    background: linear-gradient(135deg, #6CC4BF 0%, #4e8683 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: -1rem -1rem 2rem -1rem;
    box-shadow: 0 20px 40px rgba(108, 196, 191, 0.15);
    position: relative;
    overflow: hidden;
}

.dte-premium-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.dte-header-content {
    position: relative;
    z-index: 2;
}

.dte-header-badge .badge {
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.875rem;
    color: #6CC4BF !important;
}

.dte-stat-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dte-stat-pill.dte-highlight {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Custom Text Colors */
.dte-text-primary { color: #6CC4BF !important; }
.dte-text-success { color: #10b981 !important; }
.dte-text-danger { color: #ef4444 !important; }

/* Action Cards */
.dte-action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dte-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.dte-action-card:hover::before {
    left: 100%;
}

.dte-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.dte-income-card { border-left: 4px solid #10b981; }
.dte-expense-card { border-left: 4px solid #ef4444; }
.dte-compare-card { border-left: 4px solid #6CC4BF; }

.dte-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.dte-income-card .dte-card-icon { 
    background: rgba(16, 185, 129, 0.1); 
    color: #10b981; 
}

.dte-expense-card .dte-card-icon { 
    background: rgba(239, 68, 68, 0.1); 
    color: #ef4444; 
}

.dte-compare-card .dte-card-icon { 
    background: rgba(108, 196, 191, 0.1); 
    color: #6CC4BF; 
}

.dte-card-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dte-card-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0;
}

.dte-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.dte-action-card:hover .dte-card-badge {
    color: #64748b;
}

/* Smart Filter Bar */
.dte-smart-filter-bar {
    position: relative;
}

.dte-filter-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dte-filter-header {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dte-filter-header h6 {
    font-weight: 600;
    color: #374151;
}

.dte-filter-body {
    padding: 1.5rem;
}

.dte-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
}

.dte-filter-select, .dte-date-range-inputs .form-control {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.dte-filter-select:focus, .dte-date-range-inputs .form-control:focus {
    border-color: #6CC4BF;
    box-shadow: 0 0 0 3px rgba(108, 196, 191, 0.1);
}

.dte-date-range-inputs .input-group-text {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #64748b;
}

.dte-btn-primary {
    background: linear-gradient(135deg, #6CC4BF, #4e8683);
    border: none;
    color: white;
}

.dte-apply-btn {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dte-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 196, 191, 0.3);
}

/* Chart Widgets */
.dte-chart-widget {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dte-main-chart {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dte-widget-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dte-widget-header h5, .dte-widget-header h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dte-chart-controls .btn-group {
    border-radius: 10px;
}

.dte-chart-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.dte-chart-btn.btn-outline-primary {
    border-color: #6CC4BF;
    color: #6CC4BF;
}

.dte-chart-btn.btn-check:checked + .btn-outline-primary {
    background: #6CC4BF;
    border-color: #6CC4BF;
    color: white;
}

.dte-widget-body {
    padding: 1rem 1.5rem 1.5rem;
}

.dte-chart-container, .dte-pie-container {
    position: relative;
}

.dte-chart-container {
    height: 350px;
}

.dte-pie-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Metrics Widget */
.dte-metrics-widget {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dte-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dte-metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
}

.dte-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dte-metric-icon.dte-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.dte-metric-icon.dte-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.dte-metric-icon.dte-primary { background: rgba(108, 196, 191, 0.1); color: #6CC4BF; }
.dte-metric-icon.dte-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.dte-metric-value {
    font-weight: 700;
    font-size: 1.125rem;
    display: block;
    line-height: 1;
}

.dte-metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Data State */
.dte-no-data-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}

.dte-no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading State */
.dte-chart-container.dte-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #6CC4BF;
    border-radius: 50%;
    animation: dte-spin 1s linear infinite;
    z-index: 10;
}

@keyframes dte-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Desktop */
@media (min-width: 1024px) {
  .dte-premium-header.mb-5 {

 margin: -1rem 0rem 2rem 0rem;
}
.dte-header-title {
font-size: 1.25rem;
}
.dte-premium-header.mb-5 {

 margin: -1rem 0rem 2rem 0rem !important;
}


}
/* Responsive Design */
@media (max-width: 768px) {
    .dte-premium-header {
        padding: 2rem 1rem;
        margin: -1rem -0.5rem 2rem -0.5rem;
        border-radius: 0 0 20px 20px;
    }
    
    .dte-header-stats .row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .dte-stat-pill {
        width: 200px;
        text-align: center;
    }
    
    .dte-filter-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .dte-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .dte-widget-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
     .dte-header-title {
font-size: 0.75rem;
}
}

/* Custom Scrollbar */
.dte-reports-premium::-webkit-scrollbar {
    width: 6px;
}

.dte-reports-premium::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dte-reports-premium::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dte-reports-premium::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
@media (min-width: 441px) {
 .dte-header-title {
font-size: 0.75rem;
}

}
