body {
    background: #f9fafc !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* CONTAINER */
.ads-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
}

/* HEADER */
.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ads-header h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.ads-header p {
    color: #6b7280;
    margin-top: 5px;
    white-space: normal;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .ads-header p {
        max-width: 220px;
    }
}

/* BUTTONS */
.ads-header .btn-primary {
    background: #2563eb;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* QUICK ACTIONS */
.qa-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* BUTTONS */
.qa-actions a {
    flex: 1;
    text-align: center;
    white-space: nowrap; /* 🔥 stop text break */
}

.btn-secondary {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #111;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.card .btn-secondary{
    text-decoration: none !important;
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.stat span {
    color: #6b7280;
    font-size: 13px;
}

.stat strong {
    font-size: 22px;
    display: block;
    margin-top: 5px;
}

/* MAIN GRID */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    font-size: 12px;
    color: #6b7280;
    padding: 10px;
}

.table td {
    padding: 12px 10px;
    border-top: 1px solid #eee;
}

.ttj-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

/* ACTIVE */
.ttj-status-badge.ttj-active {
    background: #dcfce7;
    color: #166534;
}

/* PENDING */
.ttj-status-badge.ttj-pending {
    background: #e0f2fe;
    color: #075985;
}

/* REJECTED */
.ttj-status-badge.ttj-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* INACTIVE */
.ttj-status-badge.ttj-inactive {
    background: #f1f5f9;
    color: #475569;
}

/* EMPTY */
.empty {
    text-align: center;
    padding: 50px 20px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
}

.empty .btn-primary{
    background: #2563eb;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
}

/* PROGRESS */
.progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    margin-top: 10px;
}

.progress div {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

/* WARNING */
.danger {
    color: #dc2626;
    margin-top: 10px;
}

.danger a{
    text-decoration: none !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.right .card:first-child {
    margin-bottom: 20px;
}

.ttj-waiting {
    background: #fef9c3;
    color: #854d0e;
}

