header {
    background: linear-gradient(135deg, #1a2a44, #2e4057);
    color: white;
    text-align: center;
    padding: 15px 10px;
    position: relative;
    animation: slideDown 1s ease-in-out;
}

header .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

header .particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(247, 228, 188, 0.7);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.3; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    max-width: 100px !important; /* Tambahkan !important */
    width: 100px !important; /* Tambahkan !important */
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: rotate(360deg);
}

.school-info {
    text-align: center;
}

.school-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.school-address {
    font-size: 1em;
    margin: 5px 0;
    opacity: 0.9;
}

.running-text {
    font-size: 0.9em;
    margin: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.running-text span {
    display: inline-block;
    padding-left: 100%;
    animation: slideText 15s linear infinite;
    color: #ff6f61;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes slideText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes slideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Navigasi */
nav {
    background-color: #2e4057;
    display: block;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav::after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ff6f61;
    transition: all 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

nav a:hover {
    color: #ff6f61;
}

.dropdown {
    float: left;
    position: relative;
}

.dropdown .dropbtn {
    color: white;
    padding: 14px 20px;
    font-size: 1.1em;
    text-decoration: none;
    display: block;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.dropdown .dropbtn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ff6f61;
    transition: all 0.3s ease;
}

.dropdown:hover .dropbtn::after {
    width: 100%;
    left: 0;
}

.dropdown:hover .dropbtn {
    color: #ff6f61;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2e4057;
    width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #4a6fa5;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Pop-up Login */
.modal-login {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.5s ease-in-out;
}

.modal-login.show {
    display: block;
    opacity: 1;
}

.modal-content-login {
    background: linear-gradient(135deg, #ffffff, #f9fbfd);
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: scale(0.7);
    animation: zoomIn 0.5s ease-in-out;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.modal-content-login h2 {
    color: #1a2a44;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.modal-content-login input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #2e4057;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.modal-content-login input:focus {
    border-color: #4a6fa5;
    outline: none;
}

.modal-content-login button {
    background: linear-gradient(90deg, #1a2a44, #2e4057);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26,42,68,0.3);
}

.modal-content-login button:hover {
    background: linear-gradient(90deg, #2e4057, #1a2a44);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26,42,68,0.5);
}

.modal-content-login #error-message {
    color: #ff6f61;
    margin-top: 15px;
    font-size: 0.9em;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}