/* Màu sắc mới */
:root {
    --bg-main: #0a0e1a; /* Nền tối */
    --bg-card: #182033; /* Màu nền cho các thẻ */
    --bg-header-footer: transparent; /* Nền trong suốt cho header */
    --text-primary: #e0e7ff; /* Màu chữ chính */
    --text-secondary: #94a3b8; /* Màu chữ phụ */
    --accent-color: #7c3aed; /* Màu nhấn chính (tím) */
    --accent-color-light: #a855f7; /* Màu nhấn sáng hơn */
    --border-color: #374151; /* Màu đường viền */
    --shadow-color: rgba(0, 0, 0, 0.3); /* Màu bóng đổ */
    --accent-pink-purple: #c084fc; /* Màu tím hồng cho nút */
}

#theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    outline: none;
    flex-grow: 1;
}

/* Định nghĩa màu sắc cho chế độ sáng */
body.light {
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-header-footer: transparent;
    --text-primary: #212529;
    --text-secondary: #495057;
    --accent-color: #a855f7;
    --accent-color-light: #d946ef;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.light .bank-name,
body.light .account-owner,
body.light .account-number,
body.light .new-item h2 { /* Thêm màu cho tiêu đề ở chế độ sáng */
    color: #212529;
}


body.light .background-animation {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--bg-main) 50%,
        var(--bg-main)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    opacity: 0.7;
}

body.light .nav-container {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(173, 216, 230, 0.5);
}

body.light .nav-container a,
body.light #theme-toggle-btn {
    color: var(--text-secondary);
}

body.light .social-button {
    background-color: #e9ecef;
    color: var(--text-secondary);
    border: 1px solid #ced4da;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 10px rgba(173, 216, 230, 0.5);
}

body.light .social-button:hover {
    background-image: linear-gradient(to right, #add8e6, #f08080);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(173, 216, 230, 0.6);
}

body.light .bg-bg-card {
    background-color: #ffffff;
    color: var(--text-primary);
    border: 1px solid #ced4da;
}

body.light input::placeholder {
    color: #adb5bd;
}

body.light .copyright-container p {
    color: #495057;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--bg-main) 50%,
        var(--bg-main)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    opacity: 0.7;
    transition: background 0.5s ease, opacity 0.5s ease;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.main-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

p.max-w-2xl {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Nav container */
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1e2f;
    border-radius: 9999px;
    padding: 0.3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(137, 207, 240, 0.4);
    overflow: hidden;
    transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.nav-container a,
#theme-toggle-btn {
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    flex-grow: 1;
    text-align: center;
}

.nav-container a:hover,
.nav-container a:focus,
.nav-container a:active,
#theme-toggle-btn:hover,
#theme-toggle-btn:focus,
#theme-toggle-btn:active {
    background-image: linear-gradient(to right, #89cff0, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(137, 207, 240, 0.6);
    outline: none;
    transform: scale(1.05);
}

body.light .nav-container a:hover,
body.light .nav-container a:focus,
body.light .nav-container a:active,
body.light #theme-toggle-btn:hover,
body.light #theme-toggle-btn:focus,
body.light #theme-toggle-btn:active {
    background-image: linear-gradient(to right, #add8e6, #f08080);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(173, 216, 230, 0.6);
    transform: scale(1.05);
}

.nav-container a:active,
#theme-toggle-btn:active {
    transform: scale(0.95);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    object-fit: cover;
    border: 5px solid #89cff0;
    box-shadow: 0 0 20px rgba(137, 207, 240, 0.7);
    transition: transform 0.8s ease-in-out, border-color 0.8s ease-in-out;
}

.avatar:hover {
    transform: rotate(360deg);
    border-color: #a855f7;
}

.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background-color: #1a1e2f;
    border-radius: 9999px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 15px rgba(137, 207, 240, 0.4);
    text-align: center;
}

.social-button i {
    margin-right: 0.5rem;
}

.social-button:hover {
    background-image: linear-gradient(to right, #89cff0, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(137, 207, 240, 0.6);
    transform: scale(1.05);
}

/* Sửa đổi khu vực này */
.new-item {
    padding: 1.5rem;
    border-radius: 20px;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, border-color 0.5s ease;
    box-shadow: 0 0 15px rgba(137, 207, 240, 0.4);
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative; /* Thêm để định vị lớp phủ */
    overflow: hidden; /* Thêm để ẩn phần hiệu ứng thừa */
}

.new-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(137, 207, 240, 0.7);
}

body.light .new-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light .new-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 12px rgba(173, 216, 230, 0.6);
}

.install-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.install-button:hover {
    background-image: linear-gradient(to right, #89cff0, #a855f7);
    transform: scale(1.05);
    border-color: transparent;
}

body.light .install-button {
    color: #000000;
    border: 1px solid #000000;
    background-color: #e9ecef;
}

body.light .install-button:hover {
    background-image: linear-gradient(to right, #add8e6, #f08080);
    color: #ffffff;
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        margin: 1rem auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }
    .nav-container a, .nav-container button {
        flex-grow: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    /* CSS cho màn hình lớn hơn nếu cần */
}

@media (max-width: 480px) {
    .social-buttons-grid {
        grid-template-columns: 1fr;
    }
}

#raindrop-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.copyright-container {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

.copyright-container p {
    color: var(--text-secondary);
    opacity: 0.8;
    font-size: 0.9rem;
}

body.light .new-item p {
    color: var(--text-secondary);
}

/* Lời cảm ơn */
.thank-you-message {
    font-size: 1.1rem;
    font-weight: 600; /* Làm đậm chữ */
    color: var(--text-secondary); /* Tự động đổi màu theo biến của theme */
    opacity: 0.9;
}

/* Hiệu ứng ánh sáng quét qua */
.highlight-overlay {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.25) 50%, transparent 80%);
    animation: light-sweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes light-sweep {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(250%);
    }
    100% {
        transform: translateX(250%);
    }
}

/* Tắt hiệu ứng ở chế độ sáng */
body.light .highlight-overlay {
    animation: none;
    background: transparent;
}

/* Bo tròn icon ứng dụng trong các ô */
.new-item .flex img {
    border-radius: 16px; /* Tạo góc bo tròn, bạn có thể điều chỉnh giá trị này */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Thêm bóng đổ nhẹ để tạo chiều sâu */
    transition: transform 0.3s ease-in-out; /* Thêm hiệu ứng chuyển động mượt mà */
}

/* Thêm hiệu ứng phóng to nhẹ khi di chuột qua để tăng tương tác */
.new-item:hover .flex img {
    transform: scale(1.08);
}

/* ▼▼▼ PHẦN ĐƯỢC THÊM VÀO ▼▼▼ */
/* Hiệu ứng màu chữ cho REPO JTISVN */
.shimmering-text {
    background-image: linear-gradient(
        -75deg,
        #89cff0 0%,
        #e0e7ff 50%,
        #89cff0 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}