/* Login & Register Page Styles */
body.login-page {
    background: url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wadah untuk animasi partikel */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Diletakkan di belakang overlay */
}
.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

/* Animasi untuk kartu login */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card-login {
    z-index: 2;
    background-color: rgba(33, 37, 41, 0.9);
    color: #fff;
    border: 2px solid #d32f2f;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
    width: 100%;
    max-width: 400px;
    animation: fadeInSlideUp 0.8s ease-out forwards; /* Terapkan animasi */
}

.card-login .form-control::placeholder {
    color: #fff;
    opacity: 1;
}

.form-control, .form-select {
    background-color: #343a40;
    border: 1px solid #495057;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #343a40;
    color: #fff;
    border-color: #d32f2f;
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25);
}

.btn-racing {
    background-color: #d32f2f;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-racing:hover {
    background-color: #b71c1c;
    color: white;
}

.login-page a {
    text-decoration: none;
    color: #d32f2f;
}

.login-page a:hover {
    color: #ff6659;
}

/* Dashboard Styles */
body.dashboard-page {
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar-wrapper {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: margin 0.3s ease-out;
}

#sidebar-wrapper.toggled {
    margin-left: -250px;
}

#page-content-wrapper {
    width: 100%;
    transition: all 0.3s;
}

#main-navbar {
    transition: margin-top 0.3s ease-in-out;
}

#main-navbar.hidden {
    margin-top: -80px;
}

.list-group-item-action:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #fff !important;
    border-left: 4px solid #dc3545;
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -250px;
    }
    #sidebar-wrapper.toggled {
        margin-left: 0;
    }
}

/* Landing Page Styles */
body.landing-page {
    background-color: #121212;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.landing-page #mainNav {
    background-color: rgba(33, 37, 41, 0.95);
    border-bottom: 2px solid #d32f2f;
    transition: all 0.3s;
}

.landing-page header.masthead {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%), url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.landing-page .page-section {
    padding: 6rem 0;
}

.landing-page hr.divider {
    max-width: 3.25rem;
    border-width: 0.2rem;
    border-color: #d32f2f;
    opacity: 1;
    margin: 1.5rem auto;
}

.landing-page .btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
}