/* Dashboard Statistics Cards */
.dashboard-stats {
    padding: 1rem 0;
}

.stat-card {
    position: relative;
    padding: 1.25rem;  /* reduced from 1.5rem */
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 140px;  /* reduced from 160px */
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-15deg);
    pointer-events: none;
}

.stat-card .statistics-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-card .rate-percentage {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    /* Right in LTR, left in RTL */
    text-align: end;
}

.stat-card .stat-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.stat-card .stat-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.stat-card .stat-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Card Color Themes */
.stat-card.theme-general {
    background: linear-gradient(45deg, #795548, #8d6e63);
}

.stat-card.theme-checklists {
    background: linear-gradient(45deg, #607d8b, #78909c);
}

.stat-card.theme-risks {    
    background: linear-gradient(45deg, #9c27b0, #ab47bc);
}

.stat-card.theme-incidents {
    background: linear-gradient(45deg, #f44336, #ef5350);
}

.stat-card.theme-policies {
    background: linear-gradient(45deg, #00bcd4, #26c6da);
}

.stat-card.theme-licenses {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
}

/* New theme classes */
.stat-card.theme-operations {
    background: linear-gradient(45deg, #2c3e50, #3498db);    
}

.stat-card.theme-strategies {
    background: linear-gradient(45deg, #009688, #26a69a);
}

.stat-card.theme-meetings {
    background: linear-gradient(45deg, #ff9800, #ffa726);
}

.stat-card.theme-projects {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
}

.stat-card.theme-tasks {
    background: linear-gradient(45deg, #ff5722, #ff7043);
}

.stat-card.theme-hr {
    background: linear-gradient(45deg, #673ab7, #7e57c2);
}

.stat-card.theme-grants {
    background: linear-gradient(45deg, #1a5276, #2980b9);
}

.stat-card.theme-applications {
    background: linear-gradient(45deg, #7d3c98, #a569bd);
}

.stat-card.theme-grant-projects {
    background: linear-gradient(45deg, #186a3b, #239b56);
}

.stat-card.theme-budgets {
    background: linear-gradient(45deg, #2c3e50, #95a5a6);
}



/* Dashboard Header */
.dashboard-header {
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.dashboard-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

.dashboard-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
        min-height: 120px;  /* reduced from 140px */
    }

    .stat-card .rate-percentage {
        font-size: 1.75rem;
    }

    .dashboard-header {
        text-align: center;
    }

    .dashboard-actions {
        margin-top: 1rem;
        text-align: center;
    }

    .dashboard-actions .btn {
        margin: 0.25rem;
    }
}

/* Animation for number counting */
@keyframes countUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rate-percentage {
    animation: countUp 0.5s ease-out forwards;
}
