
.container {
    max-width: 1200px;
}

/* Header Styles */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Main Card Base */
.card-custom {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}

/* Top Scheme Info Card */
.scheme-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.scheme-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.badge-dark-custom {
    background-color: #2d3748;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #a7f3d0;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.info-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.info-text-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 2px 0;
}

.info-text-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Statistics Cards */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    height: 100%;
    background-color: #fff;
}

    .stat-card.light-green {
        background-color: #f0fdf4;
        border-color: #bbf7d0;
    }

    .stat-card.light-blue {
        background-color: #eff6ff;
        border-color: #bfdbfe;
    }

    .stat-card.light-yellow {
        background-color: #fffbeb;
        border-color: #fde68a;
    }

.stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-card.light-green .stat-icon {
    background-color: #d1fae5;
    color: #059669;
}

.stat-card.light-blue .stat-icon {
    background-color: #dbeafe;
    color: #2563eb;
}

.stat-card.light-yellow .stat-icon {
    background-color: #fef3c7;
    color: #d97706;
}

.stat-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    margin: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.stat-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Tab Navigation */
.tab-nav {
    background-color: #fff;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #e9ecef;
}

    .tab-nav button {
        flex: 1;
        background: transparent;
        border: none;
        padding: 0.7rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: #4b5563;
        border-radius: 6px;
        transition: all 0.2s;
    }

        .tab-nav button.active {
            background-color: #047857; /* Dark Green */
            color: #fff;
        }

/* Common Card Styles for lists */
.list-card-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
}

.card-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* =========================================
       OVERVIEW TAB CSS
       ========================================= */
.banner-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.banner-content {
    background: linear-gradient(to right, #ffffff, #e6f9f0);
    padding: 1.5rem;
    flex-grow: 1;
    position: relative;
}

.reward-badge {
    background-color: #10b981;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.reward-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 0.5rem;
}

.reward-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    max-width: 70%;
}

.settings-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    height: 100%;
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #374151;
}

    .settings-header i {
        color: #059669;
        font-size: 1.2rem;
    }

.setting-box {
    background-color: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
}

.setting-icon {
    background-color: #d1fae5;
    color: #059669;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.setting-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.setting-value {
    font-size: 1rem;
    font-weight: 700;
    color: #064e3b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-badge {
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
}

/* =========================================
       PARTICIPATING DEALER TAB CSS
       ========================================= */
.dealer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.dealer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dealer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dealer-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: #111827;
}

.tag-farmer {
    background-color: #374151;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-participating {
    background-color: #d1fae5;
    color: #059669;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.location-box {
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4b5563;
}

    .location-box i {
        color: #10b981;
    }

.stats-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.stat-mini-box {
    flex: 1;
    background-color: #ecfdf5;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-mini-icon {
    background-color: #059669;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.stat-mini-label {
    font-size: 0.7rem;
    color: #065f46;
    margin: 0;
}

.stat-mini-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #064e3b;
    margin: 0;
}

/* =========================================
       WINNERS TAB CSS
       ========================================= */
.winner-status {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.status-claimed {
    background-color: #d1fae5;
    color: #059669;
}

.status-notified {
    background-color: #e0e7ff;
    color: #2563eb;
}

.status-selected {
    background-color: #fef3c7;
    color: #d97706;
}

.prize-box {
    background: linear-gradient(to right, #ffffff, #e6f9f0);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.prize-img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.prize-details p {
    margin: 0;
}

.prize-label {
    font-size: 0.7rem;
    color: #6b7280;
}

.prize-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #064e3b;
}

.prize-mini-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #10b981;
    color: white;
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

.draw-date-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.draw-date-icon {
    color: #10b981;
    font-size: 1.2rem;
}

.draw-date-text {
    margin: 0;
}

.draw-date-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin: 0;
}

.draw-date-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #065f46;
    margin: 0;
}

/* =========================================
       DRAW HISTORY TAB CSS
       ========================================= */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
}

    .history-date i {
        color: #10b981;
        font-size: 1.3rem;
    }

.tag-completed {
    background-color: #d1fae5;
    color: #059669;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.history-prize-box {
    background: linear-gradient(to right, #ffffff, #e6f9f0);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.history-prize-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.history-winner-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

