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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* Container */
#container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff0000; /* Red background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.Magnitude-loader {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2); /* White border */
    border-top-color: #ffffff; /* White spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loader p {
    font-size: 24px; /* Bigger, formal */
    font-weight: bold;
    color: #ffffff; /* White text */
    letter-spacing: 3px; /* Formal spacing */
    text-transform: uppercase;
    animation: none; /* No pulse effect */
}

/* Info Panel */
#info-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 20, 147, 0.3);
    z-index: 100;
    max-width: 300px;
}

#info-panel h1 {
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#info-panel p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 0;
}

/* Header Logo SEISMIC INDONESIA (Top Center) */
#header-logo {
    position: fixed;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#header-logo img {
    height: 350px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
  #header-logo {
    top: 40px; /* kembalikan ke layar */
  }

  #header-logo img {
    height: 300px;
    transform: scale(5);
  }
}

#header-logo {
  pointer-events: none;
}

/* File Icons (Top Right) */
#file-icons {
    position: fixed;
    top: 290px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 100;
}

.file-icon {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.file-icon:hover {
    transform: translateX(-10px) scale(1.1);
}

.folder-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000000, #000000);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 19px;
    width: 35px;
    height: 12px;
    background: linear-gradient(135deg, #000000, #000000);
    border-radius: 4px 4px 0 0;
}

.icon-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* Search Container (Bottom Center) */
#search-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

#search-user {
    width: 300px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #ff0000;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#search-user:focus {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    background: #fff;
}

#search-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    background: #ffffff;
    color: rgb(255, 0, 0);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#search-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* Credits (Bottom Left) */
#credits {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

#credits p {
    margin: 5px 0;
    font-size: 13px;
    color: #fff;
}

#credits a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#credits a:hover {
    color: #ff69b4;
    text-decoration: underline;
}

/* Search Result Card (Floating Profile) */
#search-result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    transition: opacity 0.3s ease;
}

#search-result.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.search-profile-card {
    background: rgba(247, 245, 245, 0.02);
    backdrop-filter: blur(1px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.1);
    min-width: 200px;
    position: relative;
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.search-profile-card .close-search {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #000000;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.search-profile-card .close-search:hover {
    transform: rotate(90deg) scale(1.1);
    background: #ff0000;
}

.search-profile-card .member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #000000;
    box-shadow: 0 0 25px rgb(112, 0, 0);
    object-fit: cover;
}

.search-profile-card .member-name {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.search-profile-card .member-location {
    font-size: 15px;
    color: #000000;
    margin-bottom: 15px;
}

.search-profile-card .member-link {
    display: inline-block;
    padding: 10px 25px;
    background: #ffffff;
    border-radius: 25px;
    color: rgb(255, 0, 0);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.search-profile-card .member-link:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    --Magnitude-color: #ff69b4; /* Default pink, will be overridden dynamically */
    pointer-events: auto; /* Modal layer can receive clicks */
}

.modal.hidden {
    opacity: 0;
    pointer-events: none; /* When hidden, don't block clicks! */
    display: none; /* Completely remove from layout */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* No dark background! */
    backdrop-filter: none; /* No blur */
    pointer-events: auto; /* Can click to close */
}

.modal-content {
    position: relative;
    background: rgba(20, 20, 40, 0.002); /* More transparent! */
    border-radius: 20px;
    border: 2px solid var(--Magnitude-color);
    padding: 20px; /* Smaller padding */
    max-width: 50%;
    max-height: 60%; /* Taller to fit pagination - was 50% */
    overflow: hidden;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--Magnitude-color);
    backdrop-filter: blur(1px) saturate(180%);
    -webkit-backdrop-filter: blur(1px) saturate(180%);
    pointer-events: auto;
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

#member-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#modal-title {
    color: var(--Magnitude-color);
    margin-bottom: 12px;
    font-size: 18px; /* Smaller */
    text-align: center;
    flex-shrink: 0; /* Don't shrink */
}

/* Member Grid */
#member-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px; /* Smaller gap */
    margin-bottom: 12px;
    overflow-y: auto; /* Scroll if needed */
    flex-grow: 1; /* Take available space */
}

/* Pagination Controls */
#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Push to bottom */
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Always visible */
}

.page-btn {
    background: var(--Magnitude-color);
    border: none;
    padding: 8px 16px; /* Smaller */
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 12px; /* Smaller */
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--Magnitude-color);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#page-info {
    color: #fff;
    font-size: 12px; /* Smaller */
    min-width: 80px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--Magnitude-color);
    color: var(--Magnitude-color);
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    background: var(--Magnitude-color);
    color: white;
    transform: rotate(90deg);
}

.member-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px; /* Smaller */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatIn 0.6s ease forwards;
    opacity: 0;
    backdrop-filter: blur(5px);
}

.member-card:hover {
    transform: translateY(-5px); /* Less movement */
    border-color: var(--Magnitude-color);
    box-shadow: 0 10px 30px var(--Magnitude-color);
    background: rgba(255, 255, 255, 0.12);
}

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

.member-card:nth-child(1) { animation-delay: 0.1s; }
.member-card:nth-child(2) { animation-delay: 0.2s; }
.member-card:nth-child(3) { animation-delay: 0.3s; }
.member-card:nth-child(4) { animation-delay: 0.4s; }
.member-card:nth-child(5) { animation-delay: 0.5s; }

.member-photo {
    width: 50px;  /* Smaller - was 60px */
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 5px;
    border: 2px solid var(--Magnitude-color);
    box-shadow: 0 0 12px var(--Magnitude-color);
    transition: all 0.3s ease;
    object-fit: cover;
}

.member-card:hover .member-photo {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--Magnitude-color);
}

.member-name {
    font-size: 10px; /* Smaller - was 12px */
    font-weight: bold;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.2;
}

.member-link {
    display: inline-block;
    padding: 3px 8px; /* Smaller */
    background: var(--Magnitude-color);
    border-radius: 10px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 9px; /* Smaller */
    transition: all 0.3s ease;
}

.member-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--Magnitude-color);
}

/* Responsive */
@media (max-width: 768px) {
    #info-panel {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px;
    }

    #info-panel h1 {
        font-size: 20px;
    }

    #header-logo img {
        height: 50px;
    }

    #file-icons {
        top: 80px;
        right: 10px;
        gap: 15px;
    }

    .folder-icon {
        width: 60px;
        height: 55px;
    }

    .icon-logo {
        width: 35px;
        height: 35px;
    }

    #search-container {
        bottom: 20px;
        flex-direction: column;
        width: 90%;
        left: 5%;
        transform: none;
    }

    #search-user {
        width: 100%;
    }

    #search-btn {
        width: 100%;
    }

    #credits {
        bottom: 120px;
        left: 10px;
        padding: 10px 15px;
    }

    #credits p {
        font-size: 11px;
    }

    .modal-content {
        padding: 15px;
        max-width: 95%;
        max-height: 75%; /* Taller on mobile */
    }

    #modal-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    #member-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 10px;
    }

    .member-photo {
        width: 60px; /* Slightly bigger on mobile */
        height: 60px;
    }

    .member-name {
        font-size: 11px;
    }

    .member-link {
        font-size: 10px;
        padding: 4px 10px;
    }

    #pagination-controls {
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 10px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    #page-info {
        width: 100%;
        order: -1; /* Page info on top */
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    #member-grid {
        grid-template-columns: 1fr;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}








