
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 15px 50px rgba(0,0,0,0.15);
}

/* Dashboard Container */
.dashboard-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding-top: 3.5rem !important;
    padding-bottom: 4rem;
}

/* Flow Tiles (Capture, Register, etc.) */
.tile {
    position: relative;
    flex: 1;
    min-width: 100px;
    max-width: 170px;
    border: 1px solid #188428ff;
    border-radius: 5px 25px 5px 25px;
    padding: 6px;
    margin: 9px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.tile:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -21.5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #188428ff;
    transition: color 0.4s ease;
}

.tile:hover {
    transform: scale(1.05) translateY(-5px);
    background: linear-gradient(135deg, #188428ff, #4ba267ff);
    color: #fff;
}

.tile:hover::after { color: #fff; }
.tile:hover .tile-icon,
.tile:hover h5,
.tile:hover p.tile-subtitle { color: #fff; }

.tile-icon {
    font-size: 1.5rem;
    color: #188428ff;
    margin-bottom: 5px;
}

.tile h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #188428ff;
    text-transform: uppercase;
}

.tile p.tile-subtitle {
    font-size: 1.1rem;
    color: #627179;
    margin: 0;
}


/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #4ba267ff, transparent);
    margin: 3rem 0;
    border-radius: 2px;
}

/* Generate Report Button */
.btn-generate-report {
   background: linear-gradient(135deg, #188428 0%, #2d9d50 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
  font-size: 1.12rem;
    letter-spacing: 0.6px;
   padding: 1rem 5.5rem;
   border-radius: 70px !important;
   min-height: 50px;
   min-width: 280px !important;
    box-shadow: 
        0 10px 25px rgba(24, 132, 40, 0.4),
        0 5px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);  
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: none;
    white-space: nowrap;
}
.btn-generate-report::before {
 content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-generate-report:hover::before {
    left: 100%;
}

.btn-generate-report:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(24, 132, 40, 0.5),
        0 8px 15px rgba(0, 0, 0, 0.25)
    ;
}
.btn-generate-report:active {
    transform: translateY(-2px);
}

/* Stat Cards - Compact Version */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.stat-card:hover::before { 
    top: -100%; 
    right: -100%; 
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card:hover .stat-card-icon { 
    transform: scale(1.15) rotate(5deg); 
}

.stat-card.total .stat-card-icon { 
    background: var(--primary-gradient); 
}

.stat-card.children .stat-card-icon { 
    background: var(--success-gradient); 
}

.stat-card.disabled .stat-card-icon { 
    background: var(--warning-gradient); 
}

.stat-card.pending .stat-card-icon { 
    background: var(--info-gradient); 
}

.stat-card.old-beggars .stat-card-icon {
    background: linear-gradient(135deg, #d466c4, #c542d3);
}

.stat-card-title {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-card.total .stat-card-value { 
    background: var(--primary-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.stat-card.children .stat-card-value { 
    background: var(--success-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.stat-card.disabled .stat-card-value { 
    background: var(--warning-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.stat-card.pending .stat-card-value { 
    background: var(--info-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.stat-card.old-beggars .stat-card-value { 
    background: linear-gradient(135deg, #d466c4, #c542d3); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

/* Chart Cards */
.chart-card-with-border {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    gap: 0.8rem;
}

.chart-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    gap: 4rem;
    margin-top: 1rem;
}

.legend-container {
    flex: 0 0 45%;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 50%;
}

.legend-title {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.legend-item span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.chart-wrapper {
    flex: 1;
    height: 240px !important;   /* pehle 280 tha → ab 240 (chhota aur balanced) */
    min-width: 240px;           /* min-width bhi thoda kam kiya */
    max-width: 300px;           /* zyada stretch na ho, fixed feel de */
    margin: 0 auto;             /* center mein perfectly align ho jayega */
    position: relative;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.chart-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.chart-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card-title i {
    color: #667eea;
    font-size: 1.25rem;
}

.bar-chart-wrapper {
    height: 450px;
    padding: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tile { min-width: 120px; max-width: 160px; }
    .tile:not(:last-child)::after { display: none; }
    .chart-wrapper { height: 250px; }
    .bar-chart-wrapper { height: 350px; }
}