/* Affiliate Marketing Pro - Frontend Styles */

.amp-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Stats grid ─────────────────────────────── */
.amp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.amp-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.amp-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.amp-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

/* ── Colors ─────────────────────────────────── */
.amp-text--success { color: #22a06b; }
.amp-text--warning { color: #cf7f00; }
.amp-text--error   { color: #c0392b; }

/* ── Cards ──────────────────────────────────── */
.amp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.amp-card h3 {
    margin-top: 0;
    font-size: 18px;
}

.amp-login-card {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Link box ───────────────────────────────── */
.amp-link-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.amp-link-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #f9f9f9;
}

/* ── Buttons ────────────────────────────────── */
.amp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.amp-btn--primary           { background: #2271b1; color: #fff; }
.amp-btn--primary:hover     { background: #135e96; color: #fff; }
.amp-btn--secondary         { background: #f0f0f0; color: #333; border: 1px solid #ccc; }
.amp-btn--secondary:hover   { background: #e0e0e0; }

/* ── Notices ────────────────────────────────── */
.amp-notice {
    border-left: 4px solid #ccc;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.amp-notice p       { margin: 0; }
.amp-notice--success { background: #edfaf3; border-color: #22a06b; }
.amp-notice--warning { background: #fff8e6; border-color: #cf7f00; }
.amp-notice--error   { background: #fff0f0; border-color: #c0392b; }
.amp-notice--info    { background: #e8f4fd; border-color: #2271b1; }

/* ── Fields ─────────────────────────────────── */
.amp-field { margin-bottom: 18px; }

.amp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.amp-field input,
.amp-field textarea,
.amp-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}

.amp-field input:focus,
.amp-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}

.amp-field small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ── Table ──────────────────────────────────── */
.amp-table-wrap  { overflow-x: auto; }
.amp-table       { width: 100%; border-collapse: collapse; font-size: 14px; }
.amp-table th,
.amp-table td    { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; }
.amp-table th    { font-weight: 600; background: #f9f9f9; }
.amp-table tr:last-child td { border-bottom: none; }

/* ── Badges ─────────────────────────────────── */
.amp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.amp-badge--active,
.amp-badge--approved,
.amp-badge--paid    { background: #edfaf3; color: #22a06b; }
.amp-badge--pending { background: #fff8e6; color: #cf7f00; }
.amp-badge--rejected,
.amp-badge--revoked,
.amp-badge--suspended { background: #fff0f0; color: #c0392b; }

/* ── Misc ───────────────────────────────────── */
.amp-empty      { color: #888; font-style: italic; }

@media (max-width: 600px) {
    .amp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .amp-link-box {
        flex-direction: column;
        align-items: stretch;
    }
}
