:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
}

/* Khối chứa nút nổi */
.cta-float{
  position: fixed;
  right: 20px;                 /* cách mép phải */
  bottom: 20px;                /* cách mép dưới */
  display: flex;
  flex-direction: column;
  align-items: flex-end;       /* căn cả nhóm nút sát phải */
  gap: 14px;
  z-index: 9999;               /* nổi trên mọi thứ */
}

/* Nút nổi */
.cta-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-width: 240px;
  height: 60px;
  border-radius: 9999px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease;
  /* bảo đảm mép phải thẳng hàng với right:20px của .cta-float */
  box-sizing: border-box;
}
.cta-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.cta-btn img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Màu nền */
.cta-btn.zalo{ background: linear-gradient(135deg,#1977f3,#00a4ff); }
.cta-btn.call{ background: linear-gradient(135deg,#10b981,#059669); }

/* (Tùy chọn) Làm chữ nổi hơn mà không đụng cấu trúc HTML */
.cta-btn span{
  font-weight: 800;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Mobile: thu nhỏ */
@media (max-width: 768px){
  .cta-btn{
    min-width: 180px;
    height: 50px;
    font-size: 14px;
  }
  .cta-btn img{ width: 24px; height: 24px; }
}

/* ===== (TÙY CHỌN) Chữ 7 màu nháy – dùng thêm class .rainbow cho <span> ===== */
@keyframes rainbowText {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta-btn span.rainbow{
  background: linear-gradient(270deg,#ff0000,#ff7f00,#ffff00,#00ff00,#0000ff,#4b0082,#8f00ff);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 5s linear infinite;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}


.main-container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
}

.header-section {
    background: #ffffffcc;
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 0;
    text-align: left;
}

.headerbar {
    display: flex;
    align-items: center;
}

.headerbar .logo img {
    width: 150px;
    height: auto;
}

.content-section {
    padding: 2rem;
    background: #f5f5f5;
}

.section-title {
    font-weight: 600;
    color: #f39c12;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.campaign-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.campaign-card:hover::before {
    transform: scaleX(1);
}

.campaign-card.active {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.campaign-card h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.campaign-card[data-type="credit"] {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/the-tin-dung-pc.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.campaign-card[data-type="wallet"] {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/vi-tra-sau-pc.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.campaign-card[data-type="loan"] {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/vay-the-chap-pc.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.campaign-card[data-type="online"] {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./img/vay-online-pc.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.project-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.project-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.project-logo img {
    width: 70px;
}

.project-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.project-details {
    margin-bottom: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.4;
    padding: 0.25rem 0;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 13px;
    margin-top: 0.1rem;
    flex-shrink: 0;
    font-style: normal;
}

.detail-item span {
    flex: 1;
    word-wrap: break-word;
    hyphens: auto;
}

.detail-item strong {
    color: #374151;
    font-weight: 600;
    margin-right: 0.25rem;
}

.commission-badge {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.btn-modern {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
    color: white;
    text-decoration: none;
}

.btn-modern i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: translateX(2px);
}

.btn-success-modern {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-success-modern:hover {
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-logo {
    display: flex;
    align-items: center;
}

.modal-logo-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-title {
    color: white;
    font-weight: 600;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.modal-body {
    padding: 2rem;
}

.campaign-overview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.overview-item i {
    color: var(--primary-color);
    width: 20px;
}

.overview-item strong {
    color: var(--primary-color);
    min-width: 120px;
}

.status-active {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-tabs {
    border: none;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px;
    margin-right: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
}

.nav-tabs .nav-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.campaign-guide {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.guide-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.guide-item strong {
    color: var(--primary-color);
    min-width: 100px;
    flex-shrink: 0;
}

.link-instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.link-instructions h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.link-instructions ol {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.link-instructions li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.info-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.info-item strong {
    color: var(--primary-color);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.projects-container {
    min-height: 300px;
    position: relative;
}

.projects-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .project-card .card-body {
        padding: 1.25rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
    
    .project-card .card-title {
        font-size: 0.9rem;
        min-height: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border-radius: 0;
    }
    
    .header-section {
        padding: 1rem;
        border-radius: 0;
    }
    
    .content-section {
        padding: 1rem;
    }

    .campaign-card {
        padding: 2rem 1rem;
        min-height: 100px;
    }

    .campaign-card h5 {
        font-size: 1rem;
    }
    
    .project-card .card-body {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .detail-item i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .project-card .card-title {
        font-size: 0.9rem;
        min-height: 2.2rem;
    }
    
    .btn-modern {
        padding: 0.6rem 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .campaign-overview {
        padding: 1rem;
    }
    
    .overview-item {
        font-size: 0.8rem;
    }
    
    .overview-item strong {
        min-width: 80px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin: 1rem 0;
    }
    
    .section-title::after {
        width: 40px;
        height: 2px;
    }
}

@media (max-width: 576px) {
    .content-section {
        padding: 0.5rem;
    }
    
    .campaign-card {
        padding: 1.5rem 0.5rem;
    }
    
    .project-card .card-body {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
    
    .project-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
    
    .project-card .card-title {
        min-height: 2rem;
        font-size: 1rem;
    }
    
    .btn-modern {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title::after {
        width: 30px;
        height: 2px;
    }

    .headerbar {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .headerbar .logo img {
        width: 100px;
    }
} 

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus states for accessibility */
.btn-modern:focus,
.campaign-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .btn-modern,
    .campaign-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .project-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 