/* css/style.css */
/* Reset & Base Variables */
:root {
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-bg-light: #f9f9f9;
    --color-bg-dark: #121212;
    --color-border: #e0e0e0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    /* Saran terbaik: Efek stroke (border) + glow transparan agar teks terbaca jelas di atas video */
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.7),  
         1px -1px 0 rgba(255, 255, 255, 0.7),
        -1px  1px 0 rgba(255, 255, 255, 0.7),
         1px  1px 0 rgba(255, 255, 255, 0.7),
         0px 0px 8px rgba(255, 255, 255, 0.9);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* fallback for old iOS */
    height: -webkit-fill-available;
    height: 100dvh;
    z-index: -9999;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Semi-transparent overlay to keep text readable */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-primary);
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

section {
    padding: var(--spacing-xl) 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease, transform 0.5s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 1rem 2rem;
    transform: translateY(0);
    opacity: 1;
}

.navbar.scrolled .nav-brand, .navbar.scrolled .nav-links a {
    color: var(--color-primary);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #cccccc;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-text-light);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--color-secondary);
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger .bar {
    background-color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-secondary);
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
         1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px  1px 0 rgba(0, 0, 0, 0.7),
         1px  1px 0 rgba(0, 0, 0, 0.7),
         0px 0px 8px rgba(0, 0, 0, 0.8);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content {
    padding: 0 20px;
    animation: fadeIn 2s ease;
}

.pre-title {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 300;
}

.main-title {
    font-size: 5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.date {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 300;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Doa Section */
.doa-section {
    background-color: transparent;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.doa-section .container {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floral-ornament {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.doa-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #000000;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.8;
}

.doa-source {
    font-size: 0.9rem;
    color: #000000;
    letter-spacing: 1px;
}

/* Couple Section */
.couple-section {
    background-color: transparent;
}

.couple-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.profile {
    position: relative;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    color: var(--color-secondary);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    overflow: hidden;
    z-index: 1;
}

.profile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    z-index: -2;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.profile:hover .profile-img img {
    filter: brightness(1);
    transform: scale(1.05);
}

.profile .name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.profile .parents {
    font-size: 1.1rem;
    color: #eeeeee;
    margin-bottom: 1.5rem;
}

.ig-link {
    font-size: 1rem;
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: 2px;
}

.and-symbol {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-style: italic;
    color: var(--color-border);
    margin: -4rem 0;
    z-index: 2;
}

/* Story Section */
.story-section {
    background-color: transparent;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--color-border);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 45%;
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: #000000;
    text-shadow: none;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #1a1a1a;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: var(--color-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

/* Event & Countdown */
.event-section {
    background-color: transparent;
    color: var(--color-secondary);
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
         1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px  1px 0 rgba(0, 0, 0, 0.7),
         1px  1px 0 rgba(0, 0, 0, 0.7),
         0px 0px 8px rgba(0, 0, 0, 0.8);
}

.event-section .section-title::after {
    background-color: var(--color-secondary);
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: var(--spacing-xl);
}

.countdown-item {
    text-align: center;
    width: 80px;
}

.countdown-item span {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-item small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

.events-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.event-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 3rem 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #000000;
    text-shadow: none;
}

.event-icon {
    margin-bottom: 1.5rem;
    color: #000000;
}

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.event-time {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-date {
    margin-bottom: 1.5rem;
    color: #222222;
}

.event-location {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    background-color: transparent;
}

.gallery-slider {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumbnails .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.gallery-thumbnails .thumb.active,
.gallery-thumbnails .thumb:hover {
    opacity: 1;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.gallery-main {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.gallery-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-slide {
    min-width: 100%;
    height: 500px;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: var(--color-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* RSVP & Location */
.rsvp-location-section {
    background-color: transparent;
}

.rsvp-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.location-wrapper, .rsvp-wrapper {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-shadow: none;
    color: #000000;
}

.map-desc {
    margin-bottom: 1.5rem;
    color: #333333;
}

.map-container {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    display: block;
    border: none;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.btn-solid {
    background: var(--color-primary);
    color: var(--color-secondary);
    width: 100%;
}

.btn-solid:hover {
    background: #333333;
}

.rsvp-form .form-group {
    margin-bottom: 1.5rem;
}

.rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    color: #000000;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Gift Section */
.gift-section {
    background-color: transparent;
    text-align: center;
}

.gift-desc {
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bank-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.bank-card {
    background: #0B3B60; /* Warna biru elegan khas Mandiri */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    min-width: 250px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.bank-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.account-number {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.account-name {
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.bank-card .btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.bank-card .btn-outline:hover {
    background: #ffffff;
    color: #0B3B60;
}

/* Footer */
.footer-section {
    background-color: transparent;
    color: var(--color-secondary);
    text-align: center;
    padding: 6rem 2rem;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
         1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px  1px 0 rgba(0, 0, 0, 0.7),
         1px  1px 0 rgba(0, 0, 0, 0.7),
         0px 0px 8px rgba(0, 0, 0, 0.8);
}

.thanks-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.thanks-desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #aaaaaa;
}

.signature {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #888888;
}

.couple-name {
    font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(4px); /* optional for better readability */
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        color: var(--color-primary);
        font-size: 1.2rem;
        display: block;
        padding: 1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--color-primary);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--color-primary);
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 2rem;
    }
    
    .timeline-date, .timeline-item:nth-child(even) .timeline-date {
        width: 100%;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-item::after {
        left: 0;
    }
    
    .countdown-wrapper {
        gap: 1rem;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
}

/* Text Animations on Scroll */
.animate-from-left, .animate-from-right {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-from-left {
    transform: translateX(-80px);
}

.animate-from-right {
    transform: translateX(80px);
}

.animate-from-left.is-visible, .animate-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Cover Screen */
body.locked {
    overflow: hidden;
}

.cover-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-secondary);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    overflow: hidden;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
         1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px  1px 0 rgba(0, 0, 0, 0.7),
         1px  1px 0 rgba(0, 0, 0, 0.7),
         0px 0px 8px rgba(0, 0, 0, 0.8);
}

.cover-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/cover.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: coverZoom 15s infinite alternate ease-in-out;
}

.cover-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

@keyframes coverZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.cover-content {
    z-index: 1;
    animation: fadeIn 2s ease;
    padding: 2rem;
}

.cover-content .main-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.guest-name {
    font-size: 2rem;
    margin: 1rem 0 2.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-secondary);
}

.cover-screen.is-opened {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Smartphone Adjustments for Cover Screen */
@media (max-width: 768px) {
    .cover-content {
        padding: 1.5rem;
    }
    .cover-content .pre-title {
        font-size: 0.85rem;
    }
    .cover-content .main-title {
        font-size: 3.2rem;
        margin-bottom: 0.5rem;
    }
    .cover-content p {
        font-size: 0.9rem;
    }
    .guest-name {
        font-size: 1.6rem;
        margin: 0.5rem 0 1.5rem;
    }
}

/* Desktop Split-Screen Layout */
@media (min-width: 1024px) {
    body {
        width: 480px;
        margin-left: auto;
        margin-right: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.3);
    }

    .cover-screen {
        width: 480px;
        left: auto;
        right: 0;
    }

    .navbar {
        width: 480px;
        left: auto;
        right: 0;
    }
}
/* Music Button */
.music-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.music-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.music-btn.playing svg {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Messages List */
.messages-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar for messages */
.messages-list::-webkit-scrollbar {
    width: 6px;
}
.messages-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}
.messages-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.message-item {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-primary);
}

.message-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-attendance {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #f0f0f0;
    border-radius: 20px;
    color: #555;
    font-weight: normal;
}

.message-attendance.hadir {
    background: #e8f5e9;
    color: #2e7d32;
}

.message-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.message-loading {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-style: italic;
    padding: 2rem 0;
}
