/* ============================================
   Safari Vents — Admin Dashboard
   Luxury Light Theme (media_1789554603609.png)
   Canvas: #f4efe6 · Surfaces: #ffffff · Accent: #b86d26
   Prefix: ad-
   ============================================ */

/* ── Page Shell ── */
.ad {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #18181b;
    background: #f4efe6;
    min-height: 100vh;
    padding: 1.5rem 2rem;
}

/* ── Page Header ── */
.ad-header {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.ad-header-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -0.025em;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ad-header-title i {
    color: #b86d26;
}
.ad-header-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}
.ad-header-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #18181b;
    background: #faf7f2;
    border: 1px solid #e8e2d8;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ad-header-date i {
    color: #b86d26;
}

/* ── Stats Row (KPI Cards with top colored indicators) ── */
.ad-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ad-stat {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 16px;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
.ad-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e8e2d8;
}
.ad-stat:hover {
    border-color: #b86d26;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 109, 38, 0.12);
}
.ad-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.ad-stat-label {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.35rem;
}
.ad-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ad-icon-terracotta { background: rgba(184, 109, 38, 0.12); color: #b86d26; }
.ad-icon-teal { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.ad-icon-bronze { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.ad-icon-charcoal { background: rgba(24, 24, 27, 0.08); color: #18181b; }
.ad-icon-olive { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

/* ── Card Shell ── */
.ad-card {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.ad-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #f4efe6;
    background: #ffffff;
}
.ad-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #18181b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.ad-card-title i { color: #b86d26; font-size: 1rem; }
.ad-card-body { padding: 1.15rem 1.35rem; }

/* ── Buttons / Links ── */
.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.ad-btn-primary { 
    background: #b86d26; 
    color: #ffffff; 
    box-shadow: 0 2px 8px rgba(184, 109, 38, 0.25);
}
.ad-btn-primary:hover { 
    background: #a25c1a; 
    color: #ffffff; 
    text-decoration: none; 
    transform: translateY(-1px);
}
.ad-btn-sm { font-size: 0.7rem; padding: 0.35rem 0.65rem; border-radius: 8px; }
.ad-btn-review { 
    background: rgba(184, 109, 38, 0.12); 
    color: #b86d26; 
    border: 1px solid rgba(184, 109, 38, 0.2);
}
.ad-btn-review:hover { 
    background: #b86d26; 
    color: #ffffff; 
    text-decoration: none; 
}
.ad-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #b86d26;
    text-decoration: none;
}
.ad-link:hover { text-decoration: underline; color: #a25c1a; }

/* ── List Items ── */
.ad-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f4efe6;
}
.ad-list-item:last-child { border-bottom: none; }
.ad-list-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #18181b;
    margin: 0;
}
.ad-list-sub {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ── Badges ── */
.ad-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.ad-badge-pending { background: rgba(184, 109, 38, 0.12); color: #b86d26; }
.ad-badge-confirmed { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.ad-badge-rejected { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.ad-badge-cancelled { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.ad-badge-role { background: rgba(2, 132, 199, 0.12); color: #0284c7; }

/* ── Quick Actions ── */
.ad-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.ad-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e8e2d8;
    text-decoration: none;
    color: #18181b;
    transition: all 0.2s ease;
    font-size: 0.82rem;
    font-weight: 600;
    background: #ffffff;
}
.ad-action:hover {
    border-color: #b86d26;
    background: #faf7f2;
    text-decoration: none;
    color: #b86d26;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(184, 109, 38, 0.1);
}
.ad-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── Search Bar ── */
.ad-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ad-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.ad-search-wrap i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #6b7280;
    pointer-events: none;
}
.ad-search-input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.2rem;
    font-size: 0.84rem;
    font-family: inherit;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    background: #ffffff;
    color: #18181b;
    outline: none;
    transition: all 0.2s ease;
}
.ad-search-input::placeholder { color: #9ca3af; }
.ad-search-input:focus {
    border-color: #b86d26;
    box-shadow: 0 0 0 3px rgba(184, 109, 38, 0.15);
}
.ad-search-count {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Empty State ── */
.ad-empty {
    font-size: 0.82rem;
    color: #6b7280;
    text-align: center;
    padding: 1.5rem 0;
}

/* ── Loading State ── */
.ad-loading {
    text-align: center;
    padding: 3rem 1rem;
}
.ad-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(184, 109, 38, 0.15);
    border-top-color: #b86d26;
    border-radius: 50%;
    animation: ad-spin 0.6s linear infinite;
}
@keyframes ad-spin { to { transform: rotate(360deg); } }
.ad-loading-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.65rem;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 1400px) {
    .ad-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ad { padding: 1rem; }
    .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; }
}
