/* ============================================
   ADMIN USERS PAGE - MOBILE RESPONSIVE STYLES
   Add this file AFTER admin-settings-only.css
   ============================================ */

/* Users Cards Mobile - Hidden by default */
.users-cards-mobile {
    display: none;
}

.user-card-mobile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-card-mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-card-mobile-info {
    flex: 1;
}

.user-card-mobile-name {
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.user-card-mobile-email {
    font-size: 0.875rem;
    color: #9ca3af;
}

.user-card-mobile-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.user-card-mobile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-card-mobile-actions .btn-sm {
    flex: 1;
    min-width: 120px;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B8DD6 0%, #8E54E9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Data Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(51, 65, 85, 0.4);
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    color: #F1F5F9;
}

.data-table tbody tr:hover {
    background: rgba(71, 85, 105, 0.1);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #FDE047;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-info {
    background: rgba(96, 165, 250, 0.2);
    color: #BFDBFE;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #D1D5DB;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Button Small */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: #F1F5F9;
}

.btn-sm.btn-ghost {
    border-color: rgba(71, 85, 105, 0.4);
    background: rgba(71, 85, 105, 0.2);
}

.btn-sm.btn-ghost:hover {
    background: rgba(71, 85, 105, 0.4);
    border-color: rgba(71, 85, 105, 0.6);
}

.btn-sm.btn-primary {
    background: #6B8DD6;
    border-color: #6B8DD6;
    color: white;
}

.btn-sm.btn-primary:hover {
    background: #5A7BC5;
    border-color: #5A7BC5;
}

.btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Footer */
.card-footer {
    background: rgba(30, 41, 59, 0.4);
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

/* Mobile Responsive - Show cards, hide table */
@media (max-width: 768px) {
    /* Hide table on mobile */
    .table-container {
        display: none !important;
    }
    
    /* Show card view on mobile */
    .users-cards-mobile {
        display: block !important;
        padding: 1rem;
    }
    
    /* Adjust card grid for mobile */
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Stack stat cards on very small screens */
    @media (max-width: 480px) {
        .card-grid-4 {
            grid-template-columns: 1fr;
        }
    }
}
