/* ========================================
   Steller - Admin Dashboard Styles
   Professional Admin Management Interface
   ======================================== */

:root {
    --admin-bg: #f8fafc;
    --admin-card-bg: #ffffff;
}

/* Admin Page Container */
.admin-container {
    background: var(--admin-bg);
    min-height: calc(100vh - 70px);
    padding: 2rem;
}

/* ========================================
   ADMIN STATS GRID
   ======================================== */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-stat-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.admin-stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    border-radius: 50%;
}

.admin-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 14px;
    font-size: 1.8rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.stat-icon.users {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.stat-icon.deposits {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

.stat-icon.notifications {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.stat-icon.chats,
.stat-icon.pending {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    color: #6366f1;
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

/* ========================================
   ADMIN SECTIONS & HEADERS
   ======================================== */

.admin-section {
    background: var(--admin-card-bg);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease);
}

.admin-section:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 212, 255, 0.3);
}

.section-header {
    padding: 2rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(99, 102, 241, 0.02));
}

.section-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.section-header h2 i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========================================
   ACTION BUTTONS & QUICK ACTIONS
   ======================================== */

.admin-actions-section {
    background: var(--admin-card-bg);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.admin-actions-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.admin-actions-section h2 i {
    color: var(--primary);
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-buttons-grid .btn {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease));
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.action-buttons-grid .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.3);
}

.action-buttons-grid .btn i {
    font-size: 1rem;
}

/* ========================================
   ADMIN TABLES
   ======================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.admin-table thead {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
    color: var(--white);
}

.admin-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    color: var(--white);
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.95rem;
}

.admin-table tbody tr {
    transition: all var(--duration-fast) var(--ease);
}

.admin-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.08);
}

.admin-table .empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
    font-style: italic;
}

/* ========================================
   BADGES & STATUS
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.user-status.verified,
.user-status.approved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.user-status.pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.user-status.rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ========================================
   ACTION LINKS & BUTTONS
   ======================================== */

.action-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease));
    font-size: 0.95rem;
}

.action-link:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-link.view {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.action-link.view:hover {
    background: #3b82f6;
    color: var(--white);
    border-color: transparent;
}

.action-link.edit {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    color: var(--primary);
    border-color: rgba(0, 212, 255, 0.3);
}

.action-link.edit:hover {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
}

.action-link.delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.action-link.delete:hover {
    background: #ef4444;
    color: var(--white);
    border-color: transparent;
}

.action-link.approve {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.action-link.approve:hover {
    background: #10b981;
    color: var(--white);
    border-color: transparent;
}

/* ========================================
   DETAIL CARDS & PAGES
   ======================================== */

.detail-card {
    background: var(--admin-card-bg);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.detail-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--gray-900);
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02), rgba(99, 102, 241, 0.01));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    transition: all var(--duration-fast) var(--ease));
}

.detail-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(99, 102, 241, 0.02));
}

.detail-item h4 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.detail-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 600;
}

/* ========================================
   PROOF REVIEW SECTION
   ======================================== */

.payment-proof-container {
    background: var(--admin-card-bg);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.proof-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.proof-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--gray-900);
    font-weight: 700;
}

.proof-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.proof-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(99, 102, 241, 0.02));
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-value {
    display: block;
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.proof-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    min-height: 300px;
}

.proof-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.proof-actions {
    display: flex;
    gap: 1rem;
}

.proof-action-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.pagination a,
.pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease));
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination a:hover,
.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: transparent;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .admin-container {
        padding: 1.5rem;
    }

    .admin-stats-grid {
        gap: 1.5rem;
    }

    .admin-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .action-links {
        flex-wrap: wrap;
    }

    .action-link {
        flex: 1;
        min-width: 100px;
    }

    .proof-actions {
        flex-direction: column;
    }

    .proof-action-btn {
        width: 100%;
    }

    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .admin-container {
        padding: 0.75rem;
    }

    .admin-stats-grid {
        gap: 0.75rem;
    }

    .admin-stat-card {
        padding: 1rem;
        flex-direction: column;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .section-header {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .detail-card {
        padding: 1rem;
    }

    .detail-header h1 {
        font-size: 1.3rem;
    }

    .detail-item {
        padding: 1rem;
    }

    .detail-item h4 {
        font-size: 0.75rem;
    }

    .detail-item p {
        font-size: 0.95rem;
    }

    .payment-proof-container {
        padding: 1.5rem;
    }

    .proof-image {
        min-height: 250px;
    }

    .proof-image img {
        max-height: 250px;
    }

    .action-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}
