/* ============================================
   Admin Dashboard — Safari Vents Compact
   Prefix: ad-
   ============================================ */

/* ── Page Shell ── */
.ad {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #2A2A2A;
    background: #f5f3ef;
    min-height: 100vh;
    padding: 1.25rem 1.5rem;
}

/* ── Page Header ── */
.ad-header {
    background: linear-gradient(135deg, #2A2A2A 0%, #3d3d3d 100%);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.ad-header-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.125rem 0;
}
.ad-header-sub {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.ad-header-date {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.625rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ── Stats Row ── */
.ad-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.ad-stat {
    background: #fff;
    border: 1px solid rgba(158,139,99,0.12);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s ease;
}
.ad-stat:hover { border-color: rgba(158,139,99,0.25); }
.ad-stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #2A2A2A;
    letter-spacing: -0.02em;
    line-height: 1;
}
.ad-stat-label {
    font-size: 0.5rem;
    color: #8a8177;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}
.ad-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.ad-icon-terracotta { background: rgba(200,121,65,0.1); color: #C87941; }
.ad-icon-teal { background: rgba(72,140,130,0.1); color: #488C82; }
.ad-icon-bronze { background: rgba(158,139,99,0.1); color: #9E8B63; }
.ad-icon-charcoal { background: rgba(42,42,42,0.06); color: #2A2A2A; }
.ad-icon-olive { background: rgba(107,112,40,0.1); color: #6B7028; }

/* ── Card Shell ── */
.ad-card {
    background: #fff;
    border: 1px solid rgba(158,139,99,0.12);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.ad-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(158,139,99,0.08);
}
.ad-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2A2A2A;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}
.ad-card-title i { color: #9E8B63; font-size: 0.8125rem; }
.ad-card-body { padding: 0.75rem 1rem; }

/* ── Buttons / Links ── */
.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.35rem 0.625rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.ad-btn-primary { background: #C87941; color: #fff; }
.ad-btn-primary:hover { background: #b36a35; color: #fff; text-decoration: none; }
.ad-btn-sm { font-size: 0.5625rem; padding: 0.25rem 0.5rem; border-radius: 6px; }
.ad-btn-review { background: rgba(200,121,65,0.1); color: #C87941; }
.ad-btn-review:hover { background: rgba(200,121,65,0.18); text-decoration: none; }
.ad-link {
    font-size: 0.625rem;
    font-weight: 600;
    color: #C87941;
    text-decoration: none;
}
.ad-link:hover { text-decoration: underline; }

/* ── List Items ── */
.ad-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(158,139,99,0.06);
}
.ad-list-item:last-child { border-bottom: none; }
.ad-list-name {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #2A2A2A;
    margin: 0;
}
.ad-list-sub {
    font-size: 0.5625rem;
    color: #8a8177;
}

/* ── Badges ── */
.ad-badge {
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.ad-badge-pending { background: rgba(200,121,65,0.1); color: #C87941; }
.ad-badge-confirmed { background: rgba(72,140,130,0.1); color: #488C82; }
.ad-badge-rejected { background: rgba(200,80,60,0.08); color: #c8503c; }
.ad-badge-cancelled { background: rgba(42,42,42,0.06); color: #8a8177; }
.ad-badge-role { background: rgba(72,140,130,0.1); color: #488C82; }

/* ── Quick Actions ── */
.ad-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.ad-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(158,139,99,0.12);
    text-decoration: none;
    color: #2A2A2A;
    transition: border-color 0.15s ease, background 0.15s ease;
    font-size: 0.6875rem;
    font-weight: 600;
}
.ad-action:hover {
    border-color: rgba(158,139,99,0.25);
    background: rgba(158,139,99,0.03);
    text-decoration: none;
    color: #2A2A2A;
}
.ad-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── Search Bar ── */
.ad-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.ad-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.ad-search-wrap i {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    color: #9E8B63;
    pointer-events: none;
}
.ad-search-input {
    width: 100%;
    padding: 0.4rem 0.625rem 0.4rem 1.75rem;
    font-size: 0.6875rem;
    font-family: inherit;
    border: 1px solid rgba(158,139,99,0.18);
    border-radius: 8px;
    background: #fff;
    color: #2A2A2A;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ad-search-input::placeholder { color: #b5a98a; }
.ad-search-input:focus {
    border-color: #C87941;
    box-shadow: 0 0 0 2px rgba(200,121,65,0.1);
}
.ad-search-count {
    font-size: 0.5625rem;
    color: #8a8177;
    white-space: nowrap;
}

/* ── Empty State ── */
.ad-empty {
    font-size: 0.6875rem;
    color: #8a8177;
    text-align: center;
    padding: 1rem 0;
}

/* ── Loading State ── */
.ad-loading {
    text-align: center;
    padding: 2.5rem 1rem;
}
.ad-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(200,121,65,0.15);
    border-top-color: #C87941;
    border-radius: 50%;
    animation: ad-spin 0.6s linear infinite;
}
@keyframes ad-spin { to { transform: rotate(360deg); } }
.ad-loading-text {
    font-size: 0.6875rem;
    color: #8a8177;
    margin-top: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .ad-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ad { padding: 0.75rem; }
    .ad-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .ad-stats { grid-template-columns: repeat(2, 1fr); }
    .ad-actions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .ad-stats { grid-template-columns: 1fr; }
}
