/* Minimal admin styling using Bootstrap as primary system */

:root {
    --amg-primary: #f3c623;
    --amg-primary-strong: #d4a500;
    --amg-border: #e5e7eb;
    --amg-muted: #6b7280;
}

body {
    background: #f8f9fa;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    color: #111827;
    min-height: 100vh;
}

.admin-shell {
    padding: 0;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    gap: 1rem;
}

.admin-main {
    flex: 1;
    padding: 1.25rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.admin-topbar {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.admin-topbar__heading {
    flex: 1;
    min-width: 240px;
}

.admin-topbar__heading h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.admin-topbar__heading span {
    font-size: 0.9rem;
    color: var(--amg-muted);
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.admin-search input {
    width: 100%;
    border: 1px solid var(--amg-border);
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    font-size: 0.95rem;
}

.admin-search i {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    color: #a48c27;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px dashed rgba(15, 23, 42, 0.08);
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(243, 198, 35, 0.35);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.info-card,
.stat-card,
.admin-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.info-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.info-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(243, 198, 35, 0.16);
    color: #7a5b00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.info-card__value {
    font-size: 1.7rem;
    font-weight: 700;
}

.info-card__label {
    color: var(--amg-muted);
    font-size: 0.9rem;
}

.stat-card .card-body {
    padding: 1rem 1.1rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(243, 198, 35, 0.18);
    color: #7a5b00;
}

.admin-section {
    padding: 1.25rem;
}

.admin-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-section__header h2,
.admin-section__header .fw-semibold {
    font-size: 1.05rem;
    margin: 0;
}

.table-modern thead th {
    letter-spacing: 0.01em;
    font-size: 0.82rem;
    color: #4b5563;
    background: #f8fafc;
    border: 0;
    padding: 0.8rem 0.9rem;
}

.table-modern tbody td {
    border-top: 1px solid var(--amg-border);
    padding: 0.9rem;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: rgba(243, 198, 35, 0.05);
}

.table-modern {
    min-width: 580px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.badge {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--amg-border);
    background: #fff;
    font-weight: 600;
    color: var(--amg-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.shadow-soft {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-main {
        padding: 1rem 1.1rem 1.5rem;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-topbar__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .admin-topbar__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-profile {
        width: 100%;
        justify-content: space-between;
        border-left: 0;
        border-top: 1px dashed rgba(15, 23, 42, 0.08);
        padding-top: 0.75rem;
    }

    .admin-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-modern {
        min-width: 520px;
    }
}

@media (max-width: 576px) {
    .admin-main {
        padding: 0.85rem 1rem 1.25rem;
    }

    .info-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .table-modern {
        min-width: 480px;
    }
}
