/* ==============================
   🌈 GLOBAL STYLE
============================== */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #f8f9fc;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: none;
  border: none;
}
.text-success {
    color: #00e676 !important; /* xanh lá tươi, nổi bật */
    font-weight: 600;
}

.text-warning {
    color: #ffd54f !important; /* vàng nhẹ, không chói */
    font-weight: 600;
}

/* Nếu muốn thêm hiệu ứng nhẹ khi hover */
.text-success:hover,
.text-warning:hover {
    filter: brightness(1.15);
}
/* ==============================
   🌟 NAVBAR
============================== */
.navbar {
    background: linear-gradient(90deg, #007bff, #00b894);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #ff7b00, #ff00c3, #007bff, #00ffaa);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 6s ease infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
}

/* Hiệu ứng gradient động */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Giữ chữ trắng cho các thành phần khác trong navbar-brand (nếu cần) */
.navbar-brand.text-white {
    color: white !important; /* Dùng cho các phần tử không có .logo-text */
}
/* Logo text “Hoàn Tiền 247” */
.hoantien247-logo {
    background: linear-gradient(90deg, #ffffff, #ffee58);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hoantien247-logo .highlight {
    color: #ffeb3b;
    font-weight: 900;
}

/* ==============================
   🧭 SIDEBAR
============================== */
#toggle-sidebar {
    /* Đảm bảo nút toggle nằm trên NAVBAR */
    z-index: 1051; 
    /* Dùng 'btn-link' thay vì 'btn-outline-light' trong HTML mới */
    color: white !important;
}
.sidebar {
    position: fixed;
    left: 0;
    top: 58px;
    width: 250px;
    height: calc(100% - 58px);
    background: #ffffff;
    border-right: 1px solid #eee;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 1rem;
}

.sidebar a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar a:hover, .sidebar a.active {
    background: linear-gradient(90deg, #007bff, #00b894);
    color: #fff;
    border-radius: 8px;
}
.sidebar-overlay {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    height: calc(100% - 58px);
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==============================
   ⚡ BUTTONS
============================== */

/* Lớp chung cho các nút hành động chính (Dùng gradient của Navbar) */
.btn-primary-app,
.btn-custom {
    /* Sử dụng gradient đồng bộ với Navbar/Sidebar hover */
    background: linear-gradient(90deg, #007bff, #00b894); 
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px; /* Tăng padding để dễ thao tác trên mobile */
    border-radius: 10px; /* Bo tròn vừa phải */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); /* Thêm bóng đổ nhẹ */
    text-transform: uppercase; /* Chữ in hoa (tùy chọn) */
    letter-spacing: 0.5px;
}

.btn-primary-app:hover,
.btn-custom:hover {
    /* Đảo ngược gradient hoặc tăng độ sáng/shadow khi hover */
    background: linear-gradient(90deg, #00b894, #007bff); /* Đảo ngược gradient */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5); /* Bóng đổ mạnh hơn */
}
#tab3 .card {
    max-width: 480px;
    margin: 0 auto;
}

#tab3 .form-label {
    color: #333;
}

#tab3 input.form-control {
    border-radius: 10px;
    padding: 10px 12px;
}

#passwordMessage {
    font-size: 0.95rem;
}
/*===============================
   🎟️ COUPON CARDS
=============================== */
.coupon-card .btn-shop {
    background: linear-gradient(90deg, #007bff, #00b894);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 10px;
    align-self: flex-start; /* Đẩy button sang trái */
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.coupon-card .btn-shop:hover {
    background: linear-gradient(90deg, #00b894, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5);
}


@media (max-width: 992px) {
    .sidebar {
        left: -250px; 
    }
    .sidebar.active {
        left: 0;
    }
    .main,
    #content {
        margin-left: 0 !important;
    }
    .top-info {
        display: none !important;
    }
}

.table-primary th {
  background: linear-gradient(90deg, #007bff, #00b894);
  color: white;
}
.btn-success.btn-sm {
  background: linear-gradient(90deg, #00b894, #007bff);
  border: none;
}
.btn-success.btn-sm:hover {
  background: linear-gradient(90deg, #007bff, #00b894);
}
