/* Amazon Auto Affiliate Linker — Admin Styles */

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.aaal-wrap {
    max-width: 900px;
}

.aaal-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.aaal-logo {
    font-size: 1.6rem;
    line-height: 1;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.aaal-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 20px 24px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.aaal-card h2 {
    margin-top: 0;
    padding-top: 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #ececec;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

/* ── Form table ───────────────────────────────────────────────────────────── */
.aaal-table th {
    width: 220px;
    padding-left: 0;
    font-weight: 600;
}

.aaal-table td input[type="text"],
.aaal-table td input[type="number"],
.aaal-table td textarea,
.aaal-table td select {
    border-radius: 4px;
}

/* ── Preview box ─────────────────────────────────────────────────────────── */
.aaal-preview-box {
    background: #f0f8e8;
    border: 1px solid #b3d993;
    border-radius: 5px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.aaal-preview-box code {
    word-break: break-all;
    background: #e4f5d4;
    padding: 2px 5px;
    border-radius: 3px;
    color: #2d5016;
}

/* ── Save button ──────────────────────────────────────────────────────────── */
.aaal-save-btn {
    font-size: 0.95rem !important;
    padding: 8px 24px !important;
    height: auto !important;
    border-radius: 4px !important;
}

/* ── Stats page ───────────────────────────────────────────────────────────── */
.aaal-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.aaal-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aaal-filter-form select {
    border-radius: 4px;
}

.aaal-export-btn {
    background: #2271b1 !important;
    color: #fff !important;
    border-color: #2271b1 !important;
    border-radius: 4px !important;
    text-decoration: none;
}

.aaal-export-btn:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
}

/* ── Metric tiles ─────────────────────────────────────────────────────────── */
.aaal-tiles {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.aaal-tile {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.aaal-tile-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e47911;
    line-height: 1;
}

.aaal-tile-label {
    font-size: 0.78rem;
    color: #666;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Stats table ──────────────────────────────────────────────────────────── */
.aaal-stats-table {
    border-radius: 6px;
    overflow: hidden;
}

.aaal-stats-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.aaal-click-badge {
    display: inline-block;
    background: #e47911;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.aaal-url-link {
    font-size: 0.8rem;
    word-break: break-all;
    color: #2271b1;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.aaal-empty-state {
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .aaal-tiles { flex-direction: column; }
    .aaal-stats-bar { flex-direction: column; align-items: flex-start; }
}

/* ── Front-end disclosure box (visible to readers) ───────────────────────── */
.aaal-disclosure {
    background: #fff8e7;
    border: 1px solid #f0c040;
    border-left: 4px solid #e47911;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0 0 18px 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.aaal-disclosure p,
.aaal-disclosure .aaal-disclosure-text {
    margin: 0 !important;
    padding: 0 !important;
    color: #555 !important;
    font-size: 0.88rem !important;
}
