/* ============================= */
/* KPI TILE + CARD STYLES (FIXED) */
/* ============================= */

/* ICON */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-right: 20px;
    transition: all 0.5s;
    flex-shrink: 0;
    /* prevents shrinking on mobile */
}

.kpi-summary-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

/* ICON COLORS */
.count-card .card-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.2));
    color: #3498db;
}

.achievement-card .card-icon {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.2));
    color: #2ecc71;
}

.weightage-card .card-icon {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.2));
    color: #e74c3c;
}

/* CARD TEXT */
.card-info h3 {
    font-size: 13px;
    color: #95a5a6;
    margin: 0 0 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.card-info .value {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.card-info .value span {
    font-size: 18px;
    margin-left: 3px;
    color: #bdc3c7;
}


/* ============================= */
/* GRID FIX */
/* ============================= */

.kpi-tile-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* FIXED 3 columns */
    gap: 20px;
}

/* ============================= */
/* TILE CARD */
/* ============================= */

.kpi-tile-item {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #f2f2f2;
    display: flex;
    flex-direction: column;
    animation: zoomIn 0.6s ease-out both;
    min-width: 0;
    max-width: 300px;
    height:160px;
    /* prevents overflow */
}

.kpi-tile-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

/* HEADER */
.kpi-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ref-tag {
    background: #f1f3f5;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* STATUS */
.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

/* CONTENT */
.kpi-tile-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.dept-info {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
    
}

/* METRICS */
.objective-metrics {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.metric-item {
    
   flex:1;
   text-transform: uppercase;

}

.metric-item .label {
    font-size: 10px;
    font-weight: 700;
    color: #95a5a6;
}

.metric-item .val {
    font-size: 15px;
    font-weight: 700;
}

/* PROGRESS */
.achievement-progress {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-bar-container {
    height: 8px;
    background: #edf2f7;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

/* USER */
.responsible-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
}

.responsible-user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.user-meta .name {
    font-size: 14px;
    font-weight: 700;
}

.user-meta .role {
    font-size: 11px;
    color: #95a5a6;
}

/* ============================= */
/* BUTTON STATES */
/* ============================= */

.active {
    opacity: 1;
}

.non-active {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
    .kpi-tile-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 992px) {
    .kpi-tile-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 576px) {
    .kpi-tile-grid {
        grid-template-columns: 1fr;
    }


    .kpi-tile-item {
        padding: 18px;
    }


}

/* ============================= */
/* ANIMATION */
/* ============================= */

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}