:root {
    --primary: #fdfdfd;
    --sec: #710eff;
    --txt: #1f1f1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    user-select: text;
    font-family: "Poppins", sans-serif;
    /* overflow: hidden; */
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--primary);
    background-color: var(--primary);
    /* overflow: hidden; */
    /* min-height: 2000vh; */
}

/* ==== Landing Page Modern Style ==== */
.landing__page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/landing__page.webp") no-repeat center/cover;
    min-height: 85vh;
    position: relative;
}

.landing__page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #720eff4a;
    z-index: 1;
}

.landing__page .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 1.5rem;
    text-align: center;
}

.landing__page .container h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.landing__page .container h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.landing__page .container p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.landing__page .container button {
    background: var(--sec);
    color: var(--primary);
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(113, 14, 255, 0.4);
}

.landing__page .container button:hover {
    background: #5a00e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(113, 14, 255, 0.6);
}

/* ==== Section Titles ==== */
.ex__destination {
    padding: 4rem 7%;
}

.ex__destination .destination__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ex__destination h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 0.2rem;
}

.ex__destination .destination__title button {
    background: var(--sec);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    transition:
        background 0.3s,
        transform 0.2s ease;
}

.ex__destination .destination__title button:hover {
    background: #5a00e0;
    transform: translateY(-2px);
}

.ex__destination .contact__info {
    color: var(--txt);
}

/* ==== Destination Cards ==== */
.card__desti {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    color: var(--txt);
}

.destination__card .card {
    display: flex;
    flex-direction: column;
    background: var(--primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.destination__card .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.destination__card .card .loc__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination__card .card:hover .loc__img {
    transform: scale(1.05);
}

.card__content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card__content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--txt);
    margin: 0;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* ==== Empty State ==== */
.empty__state {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* ==== CTA Section ==== */
.cta__section {
    background: linear-gradient(135deg, var(--sec), #5a00e0);
    color: var(--primary);
    padding: 3rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem auto;
    max-width: 1100px;
    box-shadow: 0 6px 20px rgba(113, 14, 255, 0.3);
}

.cta__section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta__section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta__section a button {
    background: var(--primary);
    color: var(--sec);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta__section a button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card__image-wrapper {
    position: relative;
    width: 100%;
}
.badge-status.top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e6f9ee;
    z-index: 9999999 !important;
}
.badge-status.top-right.tutup {
    background: #fde8e8;
    color: #dc2626;
    z-index: 9999999 !important;
}

span.badge-status.top-right.tutup {
    z-index: 999999;
}
span.badge-status.top-right {
    z-index: 999999;
}

.card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.place-name {
    font-size: 1rem;
    font-weight: 600;
}

.place-category {
    font-size: 0.85rem;
    color: #666;
}

.info__container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 4px;
}

.price {
    font-weight: bold;
    color: var(--txt);
}

.visit-btn {
    margin-top: 10px;
    background: var(--sec);
    color: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}
.visit-btn:hover {
    background: #5a00cc;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .landing__page {
        min-height: 70vh;
    }
    .landing__page .container h1 {
        font-size: 2.3rem;
    }
    .landing__page .container p {
        font-size: 0.95rem;
    }
    .card__desti {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .destination__card .card .loc__img {
        height: 140px;
    }
}

/* SuperAdmin Index */

/* Header styles */
header {
    background-color: var(--primary);
    color: var(--txt);
    padding: 10px;
    text-align: center;
}

/* Sidebar styles */
.main-sidebar {
    background-color: var(--primary);
    color: var(--txt);
    padding: 15px;
}

/* Sidebar navigation styles */
.sidebar .nav-link {
    color: var(--txt) !important;
}

.sidebar .nav-treeview {
    padding-left: 20px;
}

.sidebar .nav-link:hover {
    background-color: #555 !important;
}

/* Content wrapper styles */
.content-wrapper {
    margin: 20px;
}

/* Footer styles */
footer {
    background-color: var(--primary);
    color: var(--txt);
    padding: 10px;
    text-align: center;
}

/* Destination Page */

.search-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/destination.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    text-align: center;
}

.search-container h3 {
    padding: 30px;
    font-size: 3rem;
}

select {
    width: 100vh;
    height: 10vh;
    padding: 8px;
    margin-right: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--txt);
}

.search-container button {
    background-color: var(--sec);
    color: var(--primary);
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 10vh;
    width: 50vh;
}

/* Media Queries */

.skeleton {
    animation: pulse 1.5s infinite;
}
.skeleton-img {
    width: 100%;
    height: 180px;
    background: #e0e0e0;
    border-radius: 8px;
}
.skeleton-text {
    width: 80%;
    height: 16px;
    background: #e0e0e0;
    margin: 8px auto;
    border-radius: 4px;
}
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../images/landing__page.webp") no-repeat center/cover;
    background-position: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.login-page .login-box {
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    padding: 30px 35px;
    background: rgba(255, 255, 255, 0.541);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: var(--txt);
    margin: 0 auto;
    z-index: 999999;
}

.login-page .login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-page .login-box label {
    font-weight: 500;
}

.login-page .login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-page .login-box input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary);
    width: 100%;
    padding: 0px 12px;
    color: var(--txt);
    font-size: 16px;
}

.login-page .login-box input:focus {
    outline: none;
    border-bottom-color: var(--sec);
}

.login-page .login-box button {
    width: 100%;
    padding: 12px;
    background: var(--sec);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-page .login-box button:hover {
    background-color: #5a00cc;
}

/* Media Queries */
@media (max-width: 768px) {
    .login-page .login-box {
        padding: 25px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .login-page .login-box {
        padding: 20px 15px;
        max-width: 95%;
    }

    .login-page {
        padding: 10px;
    }

    .login-page .login-box input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .login-page .login-box button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .login-page .login-box {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
    }
}

.login-page .login-box a {
    color: var(--sec);
    font-size: 0.9rem;
}

.login-page .login-footer {
    margin-top: 1rem;
    text-align: center;
}

.login-page .input-error {
    border-bottom: 2px solid #e53e3e;
}

.login-page .error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: -15px;
    margin-bottom: 10px;
    display: block;
}

/* .login-page .alert-danger {
    background-color: #fed7d7;
    color: #c53030;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
} */

.login-page .password-container {
    position: relative;
}

.login-page .password-input {
    position: relative;
}

.login-page .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Remember me section */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-wrapper input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 50%;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: transparent;
}

.remember-wrapper input[type="checkbox"]:checked {
    accent-color: var(--sec);
    opacity: 100%;
}

.remember-wrapper label {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    color: var(--txt);
    line-height: 1.2;
}

.forgot-password {
    font-size: 14px;
    color: var(--sec);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #5a00cc;
}

/* Media Queries untuk Remember Me */
@media (max-width: 768px) {
    .remember-wrapper label,
    .forgot-password {
        font-size: 13px;
    }

    .remember-wrapper input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .remember-wrapper label,
    .forgot-password {
        font-size: 12px;
    }

    .remember-wrapper input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

    .remember-wrapper {
        gap: 6px;
    }

    .remember-forgot {
        margin: 10px 0;
    }

    /* Layout untuk mobile kecil */
    @media (max-width: 360px) {
        .remember-wrapper label,
        .forgot-password {
            font-size: 11px;
        }

        .remember-wrapper input[type="checkbox"] {
            width: 14px;
            height: 14px;
        }
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .remember-wrapper label,
    .forgot-password {
        font-size: 12px;
    }

    .remember-wrapper input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .remember-wrapper {
        gap: 5px;
    }

    .remember-forgot {
        margin: 8px 0;
    }
}

.register-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/destination.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.register-page .reg-box {
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    padding: 30px 35px;
    background-color: rgba(255, 255, 255, 0.596);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--txt);
    margin: 0 auto;
}

.register-page .reg-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-page .reg-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--txt);
}

.register-page .reg-box input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--primary);
    width: 100%;
    padding: 10px 12px;
    color: var(--txt);
    font-size: 16px;
    transition: border-color 0.3s;
}

.register-page .reg-box input:focus {
    outline: none;
    border-bottom-color: var(--sec);
}

.register-page .reg-box button {
    width: 100%;
    padding: 12px;
    background: var(--sec);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.register-page .reg-box button:hover {
    background-color: #5a00cc;
}

.register-page .reg-box a {
    color: var(--sec);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.register-page .reg-box a:hover {
    text-decoration: underline;
    color: #5a00cc;
}

.register-page .reg-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--txt);
}

.register-page .reg-footer a {
    color: var(--sec);
    text-decoration: none;
    transition: color 0.3s;
}

.register-page .reg-footer a:hover {
    text-decoration: underline;
    color: #5a00cc;
}

.security_question_id select {
    /* width: 100vh;
    height: 10vh; */
    padding: 8px;
    margin-right: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--txt);
}

/* Media Queries untuk Register Page */
@media (max-width: 768px) {
    .register-page .reg-box {
        padding: 25px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .register-page .reg-box {
        padding: 20px 15px;
        max-width: 95%;
    }

    .register-page {
        padding: 10px;
    }

    .register-page .reg-box input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .register-page .reg-box button {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .register-page .reg-box {
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
    }
}

/* Error styles - Sama seperti di login page */
.register-page .input-error {
    border-bottom: 2px solid #e53e3e;
}

.register-page .error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
}

/* Password container */
.register-page .password-container {
    position: relative;
    margin-bottom: 15px;
}

.register-page .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--txt);
    transition: color 0.3s;
}

.register-page .toggle-password:hover {
    color: var(--sec);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--primary);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: var(--sec);
    color: var(--primary);
    padding: 15px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
    text-align: center;
    color: var(--txt);
}

.modal-footer {
    padding: 15px;
    text-align: center;
}

.modal-button {
    background-color: var(--sec);
    color: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #5a00cc;
}

/* Security Question */
.selected-question {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.selected-question i {
    margin-right: 10px;
    color: #710eff;
}

/* Success Page */
.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    width: 60px;
    height: 60px;
    color: #28a745;
}

.success-message {
    text-align: center;
    margin-bottom: 25px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--primary);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #710eff;
    color: var(--primary);
    padding: 15px 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background-color: var(--primary);
    text-align: right;
}

.modal-button {
    background-color: #710eff;
    color: var(--primary);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.modal-button:hover {
    background-color: #5a00e0;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Account Confirmation */
.account-confirmation-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/destination.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.confirmation-box {
    background-color: rgba(255, 255, 255, 0.596);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.confirmation-icon {
    margin-bottom: 24px;
    color: var(--txt);
}

.confirmation-icon i {
    width: 64px;
    height: 64px;
    color: var(--sec);
}

.confirmation-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 16px;
}

.confirmation-subtitle {
    font-size: 18px;
    color: var(--txt);
    margin-bottom: 32px;
    line-height: 1.5;
}

.account-card {
    background-color: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
    border: 1px solid #eaeaff;
}

.account-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.account-card-icon {
    background-color: #eaeaff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--sec);
}

.account-card-icon i {
    width: 24px;
    height: 24px;
    color: var(--sec);
}

.account-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--txt);
    margin: 0;
}

.account-details {
    padding: 0 16px;
}

.account-detail {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

.detail-icon {
    margin-right: 12px;
    color: var(--sec);
    margin-top: 4px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--txt);
}

.confirmation-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.confirmation-button {
    flex: 1;
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.confirmation-button.secondary {
    background-color: var(--primary);
    color: var(--txt);
    border: 1px solid #e9ecef;
}

.confirmation-button.secondary:hover {
    background-color: #e9ecef;
}

.confirmation-button.primary {
    background-color: var(--sec);
    color: var(--primary);
}

.confirmation-button.primary:hover {
    background-color: #5a00e0;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .confirmation-box {
        padding: 24px;
        margin: 16px;
    }

    .confirmation-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .account-card {
        padding: 16px;
    }
}

/* Laptop */
@media (max-width: 1366px) {
    html {
        font-size: 75%;
    }
}

/* HP */
@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
}
