/* ===================================================== 
   KOMENTAR LIST
===================================================== */

#kehadiran-list {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    height: 450px;              /* FIXED HEIGHT */
    overflow-y: auto;           /* BIARKAN ELEMENTOR YANG ATUR SCROLLBAR */
}


/* =====================================================
   BOX KOMENTAR
===================================================== */

.kehadiran-comment-wrapper {
    margin-bottom: 15px;
}

.kehadiran-comment {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-left: 4px solid #007bff;
    border-radius: 38px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.kehadiran-comment:hover {
    background-color: #f1f1f1;
    border-left-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.avatar-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content h6 {
    margin: 0;
    font-weight: bold;
}

.comment-content h5 {
    margin: 4px 0;
    font-size: 12px;
    font-style: italic;
}

.comment-content p {
    margin-top: 8px;
    line-height: 1.6;
}


/* =====================================================
   FORM
===================================================== */

#kehadiran-form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#kehadiran-form .form-group {
    margin-bottom: 15px;
}

#kehadiran-form input,
#kehadiran-form textarea,
#kehadiran-form select {
    width: 100%;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin: 5px 0;
}

#kehadiran-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#kehadiran-form button:hover {
    background-color: #0056b3;
}

#kehadiran-form button:active {
    transform: scale(0.98);
}


/* =====================================================
   AVATAR SELECTION — FIX 2 KOLOM × 5 BARIS STABIL
===================================================== */

#kehadiran-form .avatar-selection {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px;
    margin-top: 10px;
}

.avatar-selection input[type="radio"] {
    display: none;
}

#kehadiran-form .avatar-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

#kehadiran-form .avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

#kehadiran-form .avatar-item label:hover .avatar-option {
    border-color: #a15d8d;
    transform: scale(1.1);
}

#kehadiran-form .avatar-selection input[type="radio"]:checked + label .avatar-option {
    border-color: #bcffb3;
    transform: scale(1.15);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    #kehadiran-list {
        height: 350px;
    }

    .kehadiran-comment {
        flex-direction: column;
    }

    .avatar-option {
        width: 50px;
        height: 50px;
    }

}

/* =====================================================
   ANIMASI KOMENTAR BARU
===================================================== */

/* =====================================================
   ANIMASI KOMENTAR BARU
===================================================== */

@keyframes komentarIOS {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
        filter: blur(8px);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.komentar-baru .kehadiran-comment {
    animation: komentarIOS 0.9s cubic-bezier(.22,.61,.36,1);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

/* =====================================================
   PROGRESS KEHADIRAN TAMU
===================================================== */

.kehadiran-summary{
    margin:20px 0;
    text-align:center;
}

.kehadiran-bar{
    display:flex;
    height:18px;
    border-radius:20px;
    overflow:hidden;
    background:#e6e6e6;
    margin:10px 0 15px 0;
    width:100%;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 2px 6px rgba(0,0,0,0.15);
}

.bar-hadir{
    background-color:#4CAF50;
    border-top-left-radius:20px;
    border-bottom-left-radius:20px;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.35),
        inset 0 -2px 4px rgba(0,0,0,0.2),
        0 0 4px rgba(76,175,80,0.35);
}

.bar-tidak{
    background-color:#f44336;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.35),
        inset 0 -2px 4px rgba(0,0,0,0.2),
        0 0 4px rgba(244,67,54,0.35);
}

.bar-ragu{
    background-color:#858177;
    border-top-right-radius:20px;
    border-bottom-right-radius:20px;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.35),
        inset 0 -2px 4px rgba(0,0,0,0.2),
        0 0 4px rgba(255,193,7,0.35);
}

.kehadiran-label{
    display:flex;
    justify-content:center;
    gap:18px;
    font-size:14px;
    margin-top:6px;
    flex-wrap:nowrap;
}

.kehadiran-label span{
    display:flex;
    align-items:center;
    gap:4px;
    color:#333;
    font-weight:500;
}

/* =====================================================
   ANIMASI PROGRESS BAR
===================================================== */

.bar-hadir,
.bar-tidak,
.bar-ragu{
    height:100%;
    width:0;
    position:relative;

    transition: width 1s cubic-bezier(.22,.61,.36,1);

    background-size:40px 40px;

    background-image:
    repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.18) 0px,
        rgba(255,255,255,0.18) 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );

    animation: progressStripe 3s linear infinite;
}

/* =====================================================
   ANIMASI STRIPE
===================================================== */

@keyframes progressStripe{

    from{
        background-position:0 0;
    }

    to{
        background-position:40px 0;
    }

}