/* IKM (Indeks Kepuasan Masyarakat) Custom Styles */

#ikm-sec {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

#ikm-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/bg/pattern_shape_1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
}

#ikm-sec .container {
    position: relative;
    z-index: 2;
}

/* IKM Info Box */
.ikm-info-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* IKM Score Card */
.ikm-score-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Score Visual */
.score-visual {
    flex-shrink: 0;
}

.chart-icon {
    width: 80px;
    height: 80px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.chart-icon:hover {
    transform: scale(1.1);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    flex-shrink: 0;
}

.score-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.9;
}

.score-details {
    flex: 1;
    text-align: left;
}

/* Performance Info */
.performance-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.performance-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.performance-text {
    flex: 1;
}

.performance-level {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD700;
}

.performance-desc {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.survey-period,
.respondents-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #495057;
}

.survey-period i,
.respondents-info i {
    color: #007bff;
    width: 16px;
}

/* Service Announcement */
.service-announcement {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 8px;
}

.announcement-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.announcement-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* IKM Chart Container */
.ikm-chart-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.chart-image img {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* IKM Breakdown */
.breakdown-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.item-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.item-score {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
}

/* Actions and Targets */
.ikm-actions-targets {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.action-box,
.target-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.3);
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 300px;
}

.action-box:hover,
.target-box:hover {
    transform: translateY(-5px);
}

/* Box Header */
.box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.box-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.action-box .box-title,
.target-box .box-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #fff;
    flex: 1;
}

.box-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* IKM History */
.ikm-history-slider {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ikm-history-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    min-width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ikm-history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.history-score {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
}

.history-period {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.history-category {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ikm-score-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 24px;
    }
    
    .ikm-actions-targets {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-box,
    .target-box {
        min-width: auto;
    }
    
    .ikm-history-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .breakdown-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .ikm-info-box,
    .ikm-chart-container {
        padding: 20px;
    }
    
    .score-circle {
        width: 80px;
        height: 80px;
    }
    
    .score-number {
        font-size: 20px;
    }
    
    .performance-level {
        font-size: 18px;
    }
    
    .breakdown-title {
        font-size: 18px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ikm-info-box,
.ikm-chart-container,
.ikm-history-item {
    animation: fadeInUp 0.6s ease-out;
}

.ikm-history-item:nth-child(2) {
    animation-delay: 0.1s;
}

.ikm-history-item:nth-child(3) {
    animation-delay: 0.2s;
}

.ikm-history-item:nth-child(4) {
    animation-delay: 0.3s;
}