html {
    scroll-behavior: smooth;
}

.header-section {
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.header-logo {
    height: 150px;
    margin-top: 1rem;
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.header-subtitle {
    font-size:3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.header-slogan {
    font-family: 'Androgyne', sans-serif;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 2rem 0;
    font-style: italic;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.header-location-date {
    color: rgba(255, 255, 255, 0.9);
    margin: 2rem auto;
    font-weight: 500;
    font-size: 1.5rem;
    border: none;
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-location-date p {
    margin: 0;
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.button-wrapper {
    display: inline-block;
}

.header-buttons .btn {
    min-width: 280px;
    padding: 12px 0;
    font-size: 1rem;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.header-buttons .btn-primary {
    background: linear-gradient(45deg, #784B84 0%, #9B6BA5 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(120, 75, 132, 0.3);
}

.header-buttons .btn-primary:hover {
    background: linear-gradient(45deg, #70B1D4 0%, #90C5E0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 177, 212, 0.4);
}

/* Outline light button with glass effect */
.header-buttons .btn-outline-light {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.header-buttons .btn-outline-light:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    color: #784B84;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.section-title {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #ffffff;
}

.agenda-section {
    padding: 0;
}

.agenda-section .container-fluid {
    max-width: 100%;
    padding: 0 30px;
}

.agenda-table {
    background-color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.agenda-table thead th {
    background-color: #784B84 !important;
    color: #ffffff !important;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #dee2e6;
}

.agenda-table thead th:first-child {
    border-top-left-radius: 8px;
}

.agenda-table thead th:last-child {
    border-top-right-radius: 8px;
}

.agenda-table {
    background-color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden; 
}

.table {
    background-color: #ffffff !important;
    margin-bottom: 0;
}

.agenda-table th {
    background: #0076ec;
    color: rgb(4, 4, 4);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #dee2e6;
}

.agenda-table td {
    background: #ffffff;
    padding: 1rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.agenda-table tbody tr:hover td {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .agenda-section .container-fluid {
        padding: 0 15px;
    }
    
    .agenda-table td,
    .agenda-table th {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Make time column narrower on mobile */
    .agenda-table td:nth-child(3),
    .agenda-table th:nth-child(3) {
        width: 80px;
    }
    
    /* Adjust activity column width */
    .agenda-table td:nth-child(4),
    .agenda-table th:nth-child(4) {
        min-width: 200px;
    }

    .agenda-tabs {
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }

    .agenda-tab {
        font-size: 14px;
        padding: 8px 15px;
        flex: 1;
        min-width: 120px;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .button-wrapper {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    .button-wrapper .btn {
        width: 100%;
        display: block;
    }
}

@media (max-width: 360px) {
    .header-buttons .btn {
        font-size: 0.85rem;
        padding: 8px 0;
    }
}

.protocol-section .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 15px;
}

.protocol-tabs {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    border-radius: 8px;
}

.protocol-tabs .nav-link {
    margin: 0 10px;
}

.tab-content {
    flex: 1;
    position: relative;
}

.tab-pane {
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 15px;
    display: none;
}

.tab-pane.active {
    opacity: 1;
    display: block;
}

.protocol-card {
    height: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 1rem;
    border: 1px solid #5657B2;
}

@media (max-width: 768px) {
    .protocol-tabs {
        padding: 10px 0;
    }
    
    .protocol-tabs .nav-link {
        margin: 5px;
    }
}

.registration-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.95);
}

.registration-section .card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #5657B2;
    height: 100%;
}

@media (max-width: 768px) {
    .registration-section .col-md-6:first-child {
        margin-bottom: 2rem;
    }
}

.scroll-indicator {
    transform: translateX(-50%);
    animation: bounce 3s infinite;
}

/* .scroll-indicator i {
    font-size: 2rem;
    color: white;
} */

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .header-section {
        padding: 2rem 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
        width: 100%;
        overflow-x: hidden;
    }

    .corner-logo {
        position: absolute;

        top: 1rem;
        right: 1rem;
    }

    .corner-logo img {
        height: 60px;
        width: auto;
        align-items: center;
    }

    .header-logo {
        width: 80%;
        height: auto;
        margin: 2rem auto;
    }

    .header-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .header-subtitle {
        font-size: 1.8rem;
    }

    .header-slogan {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    .header-location-date {
        font-size: 1.2rem;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }

    .scroll-indicator i {
        display: inline-block;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .ma-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .header-logo {
        height: 100px;
    }
}

.footer {
    background: transparent;
    text-align: center;
    padding: 1rem;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;

}
.background-image-kosong {
    background-color: #fff;
    background-image: var(--bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    min-height: 100vh;


}

.background-image-section {
    background-image: var(--bg-image);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.form-check-input {
    box-shadow: 0 0 5px rgba(85, 0, 255, 0.5);
    border: 1px solid #5657B2;
}

.card {
    box-shadow: 0 10px 16px rgba(0,0,0,0.1);
    border: 1px solid #5657B2;

}
.navbar {
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.navbar-header {
display: flex;
justify-content: center;
width: 100%;
 }
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type='number'] {
-moz-appearance: textfield;
}

.select2-container {
z-index: 1 !important;
width: 100% !important;
}

.select2-dropdown {
    z-index: 9999;
    max-width: 500px;
}

.select2-results__options {
    max-height: 200px;
    overflow-y: auto;
}

.select2-results__option[aria-disabled=true] {
    color: #999;
    background-color: #f8f9fa;
}

.swal2-container {
z-index: 9999 !important;
}
.form-check-input:checked {
background-color: #5657B2;
border-color: #5657B2;
}

#delegate_name_group {
transition: all 0.3s ease;
}

.form-control.is-invalid {
border-color: #dc3545;
padding-right: calc(1.5em + 0.75rem);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.1875rem) center;
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
display: none;
width: 100%;
margin-top: 0.25rem;
font-size: 80%;
color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
display: block;
}

/* New section styles */
.event-title {
    color: #000000;
    font-family: sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.event-date {
    color: #000000;
    font-family: sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.protocol-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #5657B2;
}

.protocol-title {
    color: #5657B2;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.protocol-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.protocol-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 0.95rem;
}

.protocol-list li:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-title {
        font-size: 1.8rem;
    }

    .event-date {
        font-size: 1rem;
    }

    .protocol-card {
        margin: 0 15px;
    }
}

.corner-logo {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 1000;
}

.corner-logo img {
    height: 150px;
    width: auto;
    
}

@media (max-width: 768px) {
    .corner-logo {
        top: 10px;
        right: 10px;
    }
    
    .corner-logo img {
        height: 40px;
    }
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(48, 45, 45, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    position: relative;
    width: 150px;
    height: 120px;
}

.loader-logo {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(1.2);
}

.loader-ring span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(calc(18deg * var(--i)));
}

.loader-ring span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ddff00;
    box-shadow: 0 0 10px #ddff00, 0 0 20px #ddff00, 0 0 40px #ddff00,
        0 0 60px #ddff00, 0 0 80px #ddff00, 0 0 100px #ddff00;
    animation: animate34 2s linear infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes animate34 {
    0% {
        transform: scale(1);
    }
    80%,
    100% {
        transform: scale(0);
    }
}

.agenda-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.agenda-tab {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #70B1D4;
    color: #70B1D4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agenda-tab.active {
    background: #70B1D4;
    color: white;
}

.agenda-content {
    display: none;
}

.agenda-content.active {
    display: block;
}

.protocol-section .agenda-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.protocol-section .agenda-tab {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid #70B1D4;
    color: #70B1D4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.protocol-section .agenda-tab.active {
    background: #70B1D4;
    color: white;
}

.protocol-section .agenda-content {
    display: none;
}

.protocol-section .agenda-content.active {
    display: block;
}

.protocol-section .agenda-table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .protocol-section .agenda-tabs {
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }

    .protocol-section .agenda-tab {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
        font-size: 1rem;
    }
}

.protocol-content {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.protocol-content h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.protocol-details {
    margin-bottom: 2rem;
}

.protocol-list ul {
    list-style-type: none;
    padding-left: 0;
}

.protocol-list ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.protocol-list ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #70B1D4;
}

.protocol-note {
    font-weight: 500;
}

@media (max-width: 768px) {
    .agenda-table {
        margin: 0 15px;
        background: #ffffff;
    }
    
    .table {
        margin-bottom: 0;
    }

    .agenda-table table {
        min-width: 100%;
        width: 100%;
    }

    .agenda-table td {
        background: #ffffff;
        white-space: normal;
        min-width: auto;
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    /* Mengatur lebar kolom spesifik */
    .agenda-table td:nth-child(1),
    .agenda-table th:nth-child(1) {
        width: 80px;
    }

    .agenda-table td:nth-child(2),
    .agenda-table th:nth-child(2) {
        width: 100px;
    }

    .agenda-table td:nth-child(3),
    .agenda-table th:nth-child(3) {
        width: 70px;
    }

    /* Mengatur tampilan teks pada kolom kegiatan */
    .agenda-table td:nth-child(4) {
        min-width: 150px;
        max-width: 200px;
        white-space: normal;
        word-wrap: break-word;
    }

    .protocol-content h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .protocol-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .protocol-list ul li {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
}

/* Desktop & Tablet View (> 768px) */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    background: transparent;
    z-index: 999;
    padding: 12px;
}

.btn-floating {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(120, 75, 132, 0.9);
    color: white;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 50px;
    height: 50px;
}

.btn-floating:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
}

.btn-floating i {
    font-size: 24px;
    color: white;
}

.btn-floating span {
    display: none;
}

/* Mobile View (≤ 768px) */
@media (max-width: 768px) {
    .floating-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        background: #784B84;
        padding: 12px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .btn-floating {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        width: 33.33%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        padding: 8px 5px;
        transition: background-color 0.3s ease;
    }

    .btn-floating i {
        font-size: 22px;
        color: white;
        margin-bottom: 4px;
    }

    .btn-floating span {
        display: block;
        color: white;
        font-size: 12px;
        text-align: center;
        font-weight: 500;
        line-height: 1.2;
    }

    .btn-floating:active {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Tambahkan padding bottom pada content untuk menghindari tertutup floating button */
    .protocol-section, 
    .agenda-section,
    .registration-section {
        padding-bottom: 80px;
    }
}

.ma-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    margin-top: 1rem;
}

.ma-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1/1;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ma-logo {
        width: 120px;
        height: 120px;
    }
    
    .ma-logo img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .ma-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .header-logo {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}