.container {
    width: 100%;
    max-width: 1140px;
}

/* --- Header Section --- */
.dashboard-header {
    text-align: center;
    margin-bottom: 35px;
    background: none !important;
}

.badge {
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 12px;
}

.dashboard-header h1 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* --- Toggle Buttons --- */
.toggle-buttons {
    display: inline-flex;
    background-color: #f1f5f9;
    padding: 5px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap; /* Graceful wrapping on smaller dynamic tablet viewports */
    gap: 4px;
}

.btn {
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 99px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
    background-color: transparent;
    color: #64748b;
}

.btn-secondary:hover {
    color: #1e293b;
    background-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #be123c, #9f1239);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(159, 18, 57, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(159, 18, 57, 0.22);
}

/* --- Card Styles --- */
.card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
}

/* --- Table & WordPress Array Layout --- */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 12px 16px;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
}

td, th {
    vertical-align: middle; /* Ensures text aligns with user badges/labels seamlessly */
}

td {
    padding: 14px 16px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover td {
    background-color: #fafafa;
}

/* Dynamic WordPress Badge Images Layout */
table td img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Checkbox Alignment */
input[type="checkbox"] {
    cursor: pointer;
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
}

/* --- Modern Status Labels UI --- */
.status-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-label.is-earned {
    background-color: #dcfce7;
    color: #15803d;
}

.status-label.is-pending {
    background-color: #f1f5f9;
    color: #64748b;
}

/* --- Utility Typography Colors --- */
.text-green {
    color: #10b981;
    font-weight: 600;
}

.text-red {
    color: #f43f5e;
    font-weight: 600;
}

.text-blue {
    color: #3b82f6;
    font-weight: 600;
}

.text-muted {
    color: #cbd5e1;
}

/* --- Card Footers --- */
.card-footer {
    padding-top: 18px;
    display: flex;
    font-size: 13px;
}

.footer-deduction {
    flex-direction: column;
    gap: 2px;
}

.footer-deduction p {
    color: #94a3b8;
    font-weight: 500;
}

.amount-red {
    color: #ef4444;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-addition {
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    margin-top: 14px;
    color: #475569;
}


/* --- Modern Progress Bar Styles --- */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px; /* Ensures the bar doesn't collapse on smaller screens */
    max-width: 140px;
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.progress-bar-bg {
    background-color: #e2e8f0;
    height: 6px;
    width: 100%;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #3b82f6, #2563eb); /* Nice modern blue gradient fill */
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease-out; /* Smooth transition when values load */
}

/* Optional: Turns the progress bar green automatically when a course hits 100% */
.progress-bar-fill[style*="width: 100%"] {
    background: linear-gradient(90deg, #10b981, #059669);
}