/* AMPS shared dashboard + public event components */
.amps-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.4;
}
.amps-badge-success { background: #e7f4ec; color: var(--amps-success, #2f6f4e); }
.amps-badge-warning { background: #fff4e5; color: var(--amps-warning, #9a5b12); }
.amps-badge-danger { background: #fdecec; color: var(--amps-danger, #9b2c2c); }
.amps-badge-info { background: #eef3f8; color: var(--amps-info, #3d5a80); }
.amps-badge-neutral { background: #f3eee8; color: #6b5344; }
.amps-badge-seminar { background: #f4efe4; color: #3D1010; }
.amps-badge-award { background: #f7edd2; color: #8a5a12; }
.amps-badge-conclave { background: #efe6e6; color: #5c1d1d; }

.amps-alert {
    border-radius: var(--amps-radius, 10px);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.amps-alert-info { background: #f7f1e8; border-color: #e3d3bc; color: #3D1010; }
.amps-alert-success { background: #eef7f1; border-color: #c9e4d4; color: #21543a; }
.amps-alert-warning { background: #fff6ea; border-color: #efd3a8; color: #7a4a10; }
.amps-alert-danger { background: #fdf0f0; border-color: #efc7c7; color: #7a2424; }

.amps-empty {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border: 1px solid rgba(160,128,96,.18);
    border-radius: var(--amps-radius-lg, 14px);
}
.amps-empty i { font-size: 36px; color: var(--color-champagne, #D4A847); margin-bottom: 12px; }
.amps-empty h3 { color: var(--color-deep-maroon, #3D1010); margin: 0 0 8px; }
.amps-empty p { color: #6e5e5e; margin: 0; }

.amps-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.amps-skel { background: linear-gradient(90deg, #f3eee8 25%, #faf7f2 37%, #f3eee8 63%); background-size: 400% 100%; animation: amps-skel 1.2s ease infinite; border-radius: 8px; }
.amps-skel-img { height: 140px; margin-bottom: 12px; }
.amps-skel-line { height: 12px; margin-bottom: 8px; }
.amps-skel-line.short { width: 60%; }
@keyframes amps-skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.amps-event-card {
    background: #fff;
    border: 1px solid rgba(160,128,96,.16);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--amps-shadow, 0 8px 24px rgba(44,26,26,.06));
}
.amps-event-card img { width: 100%; height: 180px; object-fit: cover; }
.amps-event-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.amps-event-card h3 { font-size: 1.05rem; color: var(--color-deep-maroon, #3D1010); margin: 0; line-height: 1.35; }
.amps-event-card p { color: #6e5e5e; font-size: 14px; margin: 0; flex: 1; }
.amps-event-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 13px; color: #5c4a42; }
.amps-event-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.amps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.amps-btn:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.amps-btn-primary { background: var(--color-warm-amber, #B85C1A); color: #fff; }
.amps-btn-secondary { background: #fff; color: var(--color-deep-maroon, #3D1010); border-color: #d9c8b4; }
.amps-btn[disabled], .amps-btn.is-disabled { background: #c4b8ad; color: #fff; cursor: not-allowed; }

.amps-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.amps-filters input, .amps-filters select {
    min-height: 42px;
    border: 1px solid #ddcfc0;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
}

.amps-table-wrap { overflow-x: auto; }
.amps-table { width: 100%; border-collapse: collapse; }
.amps-table th, .amps-table td { padding: 10px 12px; border-bottom: 1px solid #efe6dc; text-align: left; vertical-align: top; }
.amps-table th { color: #3D1010; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 767px) {
    .amps-table thead { display: none; }
    .amps-table tr { display: block; border: 1px solid #efe6dc; border-radius: 10px; margin-bottom: 12px; padding: 8px; }
    .amps-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; }
    .amps-table td::before { content: attr(data-label); font-weight: 700; color: #3D1010; }
    .amps-event-card img { height: 160px; }
}

.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.admin-kpi {
    background: #fff;
    border: 1px solid rgba(160,128,96,.16);
    border-radius: 12px;
    padding: 16px;
}
.admin-kpi strong { display: block; font-size: 1.6rem; color: #3D1010; }
.admin-kpi span { color: #6e5e5e; font-size: 13px; }
