/* ========================================
   Admin Panel — BJJ Mestre v4.0f
   ======================================== */

/* Overview Grid */
.adm-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.adm-ov-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.adm-ov-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.adm-ov-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

/* Tabs */
.adm-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.adm-tab {
    flex: none;
    padding: 10px 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.adm-tab.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
}

/* Cards */
.adm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.adm-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s;
}
.adm-card:active { transform: scale(0.98); }
.adm-card:hover { border-color: rgba(255,255,255,0.15); }

.adm-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.adm-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}
.adm-date {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
}
.adm-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #fff;
}
.adm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}
.adm-card-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin: 4px 0 0;
    line-height: 1.3;
}
.adm-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 0.88rem;
}

/* Modal */
.adm-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11,17,32,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.adm-modal-inner {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: #1a2235;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.adm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    background: #1a2235;
    z-index: 1;
}
.adm-modal-header h3 {
    margin: 0;
    font-size: 1rem;
}
.adm-modal-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adm-modal-body {
    padding: 16px 18px 30px;
}

/* Detail content */
.adm-detail-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.adm-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.adm-detail-item {
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.adm-detail-item strong {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2px;
    font-weight: 500;
}
.adm-detail-item span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}
.adm-detail-section {
    margin-top: 12px;
}
.adm-detail-section strong {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
}
.adm-detail-section p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.4;
}
.adm-offer-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(59,130,246,0.1);
    color: #93c5fd;
}
.adm-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    margin-top: 4px;
    box-sizing: border-box;
}
.adm-textarea:focus { border-color: #3b82f6; }

/* Actions */
.adm-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.adm-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.adm-action-btn:active { opacity: 0.7; }
.adm-btn-approve { background: rgba(16,185,129,0.15); color: #10b981; }
.adm-btn-review { background: rgba(245,158,11,0.15); color: #f59e0b; }
.adm-btn-reject { background: rgba(239,68,68,0.15); color: #ef4444; }
.adm-btn-inactive { background: rgba(100,116,139,0.15); color: #94a3b8; }
