/* Background for body */
body {
    background-image: url("https://cdn.tgdd.vn/News/1370564/200-hinh-nen-powerpoint-cute-sieu-de-thuong-day-phong-cach-2-800x500.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* General styles */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Navbar trong suốt mờ */
.navbar-custom {
    background: rgba(255, 255, 255, 0.1);
    /* nền trắng mờ */
    backdrop-filter: blur(12px);
    /* hiệu ứng mờ */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
}

/* Đổi màu chữ navbar sang đen/xám đậm để nổi bật trên nền sáng */
.navbar-nav .nav-link {
    color: #222;
    /* hoặc #333, #111 nếu bạn muốn đậm hơn */
    font-weight: 500;
    padding: 8px 16px;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
    /* màu xanh dương nổi bật khi hover */
    text-shadow: 0 0 2px rgba(0, 123, 255, 0.4);
}

.navbar-nav .nav-link.active {
    color: #d63384;
    /* màu hồng nổi bật */
    font-weight: 600;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgb(14, 139, 69);
    margin-right: 10px;
}

/* CSS chung cho form */
.form-container {
  position: relative; /* ⬅ thay vì fixed */
  margin: 40px auto;
  padding: 40px 30px;
  background-color: #ffffff;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  z-index: 1001;
  max-height: none; /* Cho phép cao thoải mái */
  overflow: visible;
}


/* QR form cụ thể */
#donateForm img,
#qrContainer img {
    max-width: 250px;
    border: 6px solid #20c997;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(32, 201, 151, 0.4);
    margin: 20px 0;
}

#donateForm h2,
#qrContainer h2 {
    font-size: 28px;
    color: #20c997;
    margin-bottom: 10px;
    font-weight: 700;
}

#donateForm p,
#qrContainer p {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Nút đóng */
.form-container .btn-secondary {
    background-color: #6c757d;
    border: none;
    transition: background-color 0.3s ease;
}

.form-container .btn-secondary:hover {
    background-color: #5a6268;
}

/* Hiệu ứng overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Hiệu ứng khi form xuất hiện */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Ẩn form */
.hidden {
    display: none;
}

/* Main buttons styles */
.main-buttons {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -80px;
}

.main-buttons button {
    width: 250px;
    height: 60px;
    margin: 15px;
    font-size: 1.2rem;
    border-radius: 30px;
}

/* Form container styles */
.form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 30px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    z-index: 1001;
}

.form-container h2 {
    text-align: center;
    color: #6a1b9a;
}

.form-container label {
    font-weight: bold;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Media queries */
@media (max-width: 768px) {
    .form-container {
        width: 95%;
        border-radius: 10px;
    }
}

/* Copy button styles */
.copy-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 10px;
}

.copy-btn:hover {
    color: #0056b3;
}

/* Pulsing button animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulsing-button {
    animation: pulse 1.5s infinite;
    transition: transform 0.3s ease;
}

/* Navbar links styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffcc00;
}

/* Menu toggle button styles */
.menu-toggle {
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    display: none;
    cursor: pointer;
}