@keyframes pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pop-animation {
    animation: pop 0.3s ease-out forwards;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 150px;
}
 
@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }
}

/* ===== TOP BANNER (HEADER) ===== */ 
.top-banner { 
    width: 100%; 
    background: #1976B3;
    padding: 0; 
    text-align: center; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    height: 70px; 
} 

/* Simplified wave - just bottom curve */ 
.wave-container { 
    position: absolute; 
    bottom: -1px; 
    left: 0; 
    width: 100%; 
    height: 30px; 
    z-index: 1; 
} 

.wave { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 200%; 
    height: 100%; 
    background-repeat: repeat-x; 
    animation: wave-flow 20s linear infinite; 
} 

.wave-1 { 
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,50 C300,20 600,80 900,50 C1050,35 1150,60 1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>'); 
    opacity: 0.8; 
} 

@keyframes wave-flow { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
} 

/* Light beam animation */ 
.light-beam { 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 40%; 
    height: 100%; 
    background: linear-gradient(90deg,  
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%); 
    animation: beam-sweep 8s ease-in-out infinite; 
    transform: skewX(-15deg); 
    z-index: 2; 
} 

@keyframes beam-sweep { 
    0%, 100% { left: -100%; } 
    50% { left: 150%; } 
} 

.banner-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-text { 
    font-size: 3rem; 
    font-weight: 700; 
    color: white; 
    letter-spacing: 20px; 
    text-transform: uppercase; 
    text-shadow:  
        2px 2px 4px rgba(0, 0, 0, 0.3), 
        0 0 20px rgba(255, 255, 255, 0.2); 
} 

.banner-text-kiosk {
    font-size: 1.6rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.banner-subtitle {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: #FFFFFF;
    letter-spacing: 1px;
}

/* Logo next to banner text */ 
.banner-logo { 
    object-fit: contain; 
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); 
} 
 
.banner-logo-left {
    width: 70px;
    height: 70px;
}

.banner-logo-right {
    width: 100px;
    height: 100px;
}

/* Compensate for SDO logo internal padding/whitespace */ 
.banner-logo.sdo-logo { } 

.banner-content { 
    position: relative; 
    z-index: 3; 
    padding: 0 40px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 10px; 
} 

.banner-content-center {
    justify-content: center;
}

/* Responsive */ 
@media (max-width: 768px) { 
    .top-banner { 
        height: 80px; 
    } 

    .banner-content { 
        padding: 0 15px; 
    } 

    .banner-text { 
        font-size: 1.2rem; 
        letter-spacing: 4px; 
    } 

    .banner-text-kiosk {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .banner-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    } 

    .wave-container { 
        height: 20px; 
    } 

    .banner-logo { 
        margin: 0; 
    } 
     
    .banner-logo.sdo-logo { } 
}

/* Rating System Enhancements */
.star-btn svg {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
    color: #D1D5DB;
}

.star-btn:hover svg {
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.5));
}

.rating-star-filled svg {
    color: #facc15;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.3));
}

.rating-star-empty svg {
    color: #D1D5DB;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

#mood-display {
    perspective: 1000px;
}

#mood-display span {
    display: inline-block;
}

/* Blurred Background */
.bg-fixed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-image-blurred {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/Library-Hub-Balanga-City.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.8);
    transform: scale(1.02);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Table Header Styles - just in case */
th {
    background-color: #0A6FB5;
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #0E8FC4;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Glassmorphism for the main card */
main .bg-white {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.rating-card {
    margin-top: 100px;
}

/* Responsive Card Container */
main {
    width: 100%;
    max-width: 28rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    main {
        padding: 0;
    }
}

@media (max-width: 480px) {
    main {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    main .bg-white {
        border-radius: 1.5rem;
    }
    
    .px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .py-8 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 360px) {
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
}

@media (min-width: 768px) {
    main {
        max-width: min(65vw, 44rem);
    }

    main h2 {
        font-size: 1.875rem !important;
    }

    main p.text-body {
        font-size: 1rem !important;
    }

    main label,
    main input,
    main textarea,
    main #response-message {
        font-size: 0.975rem;
    }

    main input,
    main textarea {
        min-height: 56px;
    }

    #submit-btn {
        min-height: 56px;
    }

    .banner-logo { }
}

@media (min-width: 768px) {
    .rating-main {
        max-width: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .rating-card {
        width: 70%;
        max-width: 44rem;
    }

    main h2 {
        font-size: 2rem !important;
    }

    main p.text-body {
        font-size: 1.125rem !important;
    }

    main label,
    main input,
    main textarea,
    main #response-message {
        font-size: 1.125rem;
    }

    main input,
    main textarea {
        min-height: 56px;
    }

    #submit-btn {
        min-height: 56px;
    }

    #rating-stars {
        gap: 16px;
    }

    .star-btn {
        min-width: 60px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .star-btn svg {
        width: 3.25rem;
        height: 3.25rem;
    }
}



.emoji-face-animate {
    animation: none;
}

@keyframes emoji-bounce {
    0% {
        transform: translateY(1.25rem) scale(0.9);
    }
    40% {
        transform: translateY(0.75rem) scale(1.05);
    }
    70% {
        transform: translateY(1.35rem) scale(0.98);
    }
    100% {
        transform: translateY(1.25rem) scale(1);
    }
}

.emoji-face {
    font-size: 10rem;
    line-height: 1;
    transform: translateY(1.25rem);
}

.emoji-face-animate {
    animation: none;
}

@keyframes emoji-bounce {
    0% {
        transform: translateY(1.25rem) scale(0.9);
    }
    40% {
        transform: translateY(0.75rem) scale(1.05);
    }
    70% {
        transform: translateY(1.35rem) scale(0.98);
    }
    100% {
        transform: translateY(1.25rem) scale(1);
    }
}

@media (min-width: 768px) {
    .emoji-face {
        font-size: 12rem;
    }
}

/* Admin filters: lock widths to avoid layout shift when option text changes */
#highlightFilterRating,
#highlightsFilterRatingModal {
    width: 10rem; /* 160px */
}

/* Ensure inputs can shrink within flex rows without pushing buttons */
#highlightsSearch {
    min-width: 0;
}

/* Keep main filter width stable on larger screens */
@media (min-width: 768px) {
    #filterRating {
        width: 12rem; /* 192px */
    }
}

/* Avoid width jump when scrollbar appears in the modal list */
#highlightsModalList {
    scrollbar-gutter: stable both-edges;
}

#feedbackSection thead th {
    background-color: #F3F4F6;
    color: #333333;
    font-weight: 600;
}
