
:root {
    --primary: #5d8aa8;
    --primary-light: #5d8aa8;
    --primary-dark: #3a6a8c;
    --secondary: #a8d5ba; 
    --accent: linear-gradient(to right, #ed842e, #b35502);
    --accent-light: #ffc8a3;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #4a5568;
    --text-light: #718096;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex: 1;
}


header {
    background: linear-gradient(135deg, var(--primary) 0%, #a7d1a7 100%);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.alert {
    background: #ffdddd;
    color: #b30000;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ffaaaa;
}



.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-menu a i {
    margin-right: 8px;
}

.nav-menu a:hover {
    color:#1f394b;
}

.search-bar {
    display: flex;
    margin-left: 20px;
}

.search-bar input {
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 250px;
}

.search-bar button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--accent-light);
}


.sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: var(--shadow);
    padding: 25px 20px;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow-y: auto;
}

.left-bar {
    margin-bottom: 30px;
}

.left-bar h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-menu a i {
    margin-right: 10px;
    color: var(--primary);
}

.sidebar-menu a:hover {
    background: var(--primary-light);
    color: white;
}

.sidebar-menu a:hover i {
    color: white;
}

.opsi {
    display: flex;
    flex-direction: column;
}

.opsi label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.opsi input {
    margin-right: 10px;
}
.floating-login {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff6b00; /* warna kontras */
    color: #fff;
    border-radius: 50px; /* lingkaran dengan teks di dalam */
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}

.floating-login i {
    font-size: 16px;
}

.floating-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}


.promo-card {
    background: linear-gradient(135deg, var(--primary) 0%, #8fbc8f 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.promo-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.konten {
  width: 100%;
  height: 100%;
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}


.konten-bandung {
    background: 
        linear-gradient(rgba(27, 42, 52, 0.7), rgba(93, 138, 168, 0.7)), 
        
        url('https://images.unsplash.com/photo-1611638281871-1063d3e76e1f?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1133');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.konten-bandung h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.konten-bandung p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    color: #b35502;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Destinasi Populer */
.section-title {
    margin: 40px 0 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    bottom: 0;
    left: 0;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(5px);
}

.destinations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.destination-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #f39c12;
    margin-right: 10px;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.promo {
    background: linear-gradient(135deg, var(--primary) 0%, #8fbc8f 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.promo h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.promo p {
    max-width: 700px;
    margin: 0 auto 30px;
}


.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}



.price-box {
    margin: 20px 0;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.discount {
    background: var(--primary);
    padding: 5px 10px;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
}

.price {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 10px;
}


footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}
/* ======================================== */
/* MODAL LOGIN & REGISTER USER             */
/* ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* gelap transparan */
    display: none; /* default hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.modal-box .close-modal:hover {
    color: #e74c3c;
}

/* judul modal */
.modal-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

/* input form */
.modal-box form .input-group {
    margin-bottom: 15px;
}

.modal-box form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.modal-box form input[type="text"],
.modal-box form input[type="email"],
.modal-box form input[type="password"],
.modal-box form input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.2s;
}

.modal-box form input:focus {
    border-color: #3498db;
}

/* tombol submit */
.modal-box form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-box form button[type="submit"]:hover {
    background: #2980b9;
}

/* link switch login/register */
.modal-box .switch-modal {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

.modal-box .switch-modal a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.modal-box .switch-modal a:hover {
    color: #2980b9;
}

/* animasi */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
}
.popup-content {
    width: 360px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
    padding: 20px;

    opacity: 0;
    transform: scale(0.2) translate(40px, -40px);
    transform-origin: top right;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}
.profile-popup.show .popup-content {
    opacity: 1;
    transform: scale(1) translate(0,0);
}

.profile-header {
    text-align: center;
}
.user-profile{
    display:flex;
    align-items:center;
    cursor:pointer;
}
.profile-popup.show .popup-content {
    opacity: 1;
    transform: scale(1) translate(0,0);
}

.profile-pic{
    width:38px;
    height:38px;
    border-radius:50%;
    object-fit:cover;
}

.profile-initial{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#3498db;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:16px;
    border:2px solid #3498db;
}

.profile-section {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.profile-section h3 {
    margin-bottom: 10px;
}

.profile-section label {
    display: block;
    margin-bottom: 5px;
}

.profile-section input {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.profile-arrow{
    margin-left:6px;
    font-size:12px;
    color:#ffffff;
    transition:0.3s;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db; /* Warna default jika tidak ada foto */
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-text {
    flex: 1;
    overflow: hidden;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Garis Pembatas */
.divider {
    border: 0;
    height: 1px;
    background: #eeeeee;
    margin: 0 0 20px 0;
}

/* Form Styling */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    font-size: 14px;
    color: #333;
    transition: 0.2s;
    box-sizing: border-box; /* Penting agar padding tidak melebarkan input */
}

.input-group input:focus {
    border-color: #3498db;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Tombol Aksi */
.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-save {
    flex: 1;
    background: #3498db;
    color: white;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #2980b9;
}

.btn-cancel {
    flex: 1;
    background: #f1f1f1;
    color: #555;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.password-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}
.btn-cancel:hover {
    background: #e0e0e0;
}

.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.profile-circle {
    width: 38px;
    height: 38px;
    background: #e91e63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.arrow {
    margin-left: 6px;
    transition: transform 0.4s ease;
}

/* POPUP */
.profile-popup {
    position: absolute;
    top: 70px; /* Sesuaikan dengan tinggi navbar */
    right: 20px;
    visibility: hidden; /* Gunakan visibility agar transisi jalan */
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.popup-content {
    width: 340px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 25px;
    border: 1px solid #f0f0f0;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}
.profile-popup.show {
    visibility: visible;
    opacity: 1;
}
/* ACTIVE */
.profile-popup.show .popup-content {
    transform: translateY(0);
}

/* Bagian Atas: Header Profile */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.profile-form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

.popup-actions {
    display: flex;
    justify-content: space-between;
}

.btn-save {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
}

.btn-cancel {
    background: #eee;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-logout {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-logout:hover {
    background-color: #a71d2a;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .search-bar {
        margin: 15px 0 0;
        width: 100%;
    }
    
    .search-bar input {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .konten-bandung h1 {
        font-size: 2rem;
    }
    
    .destinations, .testimonials {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
